iio-buffer-utils: Don't throw warnings on ENOENT
As we don't return when the file doesn't exist, don't print a warning either, as this would pollute logs and throw people off when debugging real problems. Closes: #180
This commit is contained in:
@@ -177,7 +177,8 @@ iioutils_get_param_float (float *output,
|
||||
fclose (sysfsfp);
|
||||
} else {
|
||||
ret = -errno;
|
||||
g_warning ("Failed to read float from %s", filename);
|
||||
if (ret != -ENOENT)
|
||||
g_warning ("Failed to read float from %s", filename);
|
||||
}
|
||||
|
||||
g_free (filename);
|
||||
|
Reference in New Issue
Block a user