|
@@ -588,6 +588,7 @@ static ssize_t __iio_format_value(char *buf, size_t len, unsigned int type,
|
|
|
return snprintf(buf, len, "%d", vals[0]);
|
|
|
case IIO_VAL_INT_PLUS_MICRO_DB:
|
|
|
scale_db = true;
|
|
|
+ /* fall through */
|
|
|
case IIO_VAL_INT_PLUS_MICRO:
|
|
|
if (vals[1] < 0)
|
|
|
return snprintf(buf, len, "-%d.%06u%s", abs(vals[0]),
|