mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
Fix print_dB() with a minus value
Fix print_dB() with a minus dB value.
This commit is contained in:
parent
33319eb4ed
commit
dedc292efa
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ static void print_spaces(unsigned int spaces)
|
|||
|
||||
static void print_dB(int dB)
|
||||
{
|
||||
printf("%i.%02idB", dB / 100, dB % 100);
|
||||
printf("%i.%02idB", dB / 100, (dB < 0 ? -dB : dB) % 100);
|
||||
}
|
||||
|
||||
static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_size)
|
||||
|
|
Loading…
Reference in a new issue