iio-buffer-utils: Print error when reading from device fails
Rather than just "Failed to read float from...", also print the errno so can start taking guesses at what the problem is.
This commit is contained in:
@@ -178,7 +178,7 @@ iioutils_get_param_float (float *output,
|
||||
} else {
|
||||
ret = -errno;
|
||||
if (ret != -ENOENT)
|
||||
g_warning ("Failed to read float from %s", filename);
|
||||
g_warning ("Failed to read float from %s: %s", filename, g_strerror (-ret));
|
||||
}
|
||||
|
||||
g_free (filename);
|
||||
|
Reference in New Issue
Block a user