From bfcb26f9f7b893e24ebeeb76232c5cd0066d087e Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 31 Jan 2013 17:47:50 +0100 Subject: [PATCH 15/15] amixer: Fix dB value outputs in amixer contents Add missing cast to signed int for DB_MINMAX* types. Signed-off-by: Takashi Iwai --- amixer/amixer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -560,9 +560,9 @@ static void decode_tlv(unsigned int spac } } else { printf("min="); - print_dB(tlv[2]); + print_dB((int)tlv[2]); printf(",max="); - print_dB(tlv[3]); + print_dB((int)tlv[3]); } break; #endif @@ -600,9 +600,9 @@ static void decode_tlv(unsigned int spac } } else { printf("min="); - print_dB(tlv[2]); + print_dB((int)tlv[2]); printf(",max="); - print_dB(tlv[3]); + print_dB((int)tlv[3]); } break; #endif