From bfcb26f9f7b893e24ebeeb76232c5cd0066d087e Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 31 Jan 2013 17:47:50 +0100 Subject: [PATCH] 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(-) diff --git a/amixer/amixer.c b/amixer/amixer.c index 5d5afce..c7c879d 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -560,9 +560,9 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_ } } 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 spaces, unsigned int *tlv, unsigned int tlv_ } } 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