diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-09-07 11:32:05 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-09-08 16:15:16 +0100 |
commit | 1dcace30184c812f1e12ee10cc827accce140cc0 (patch) | |
tree | 97fcb91aa25b376a6ae320529da8c7785799a14c /tools/intel_l3_udev_listener.c | |
parent | f0381d1abebfc5b7e24a835dfe1c2344396c0304 (diff) |
build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/intel_l3_udev_listener.c')
-rw-r--r-- | tools/intel_l3_udev_listener.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/intel_l3_udev_listener.c b/tools/intel_l3_udev_listener.c index 261630e9..0b94c1c5 100644 --- a/tools/intel_l3_udev_listener.c +++ b/tools/intel_l3_udev_listener.c @@ -113,10 +113,10 @@ again: udev_device_unref(udev_dev); - asprintf(&err_msg, "Parity error detected on: %d,%d,%d,%d. " + assert(asprintf(&err_msg, "Parity error detected on: %d,%d,%d,%d. " "Try to run intel_l3_parity -r %d -b %d -s %d -w %d -d", loc->slice, loc->row, loc->bank, loc->subbank, - loc->row, loc->bank, loc->subbank, loc->slice); + loc->row, loc->bank, loc->subbank, loc->slice) != -1); if (daemon) { syslog(LOG_INFO, "%s\n", err_msg); goto again; |