mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
+2
-1
@@ -506,7 +506,8 @@ static int intel_reg_snapshot(struct config *config, int argc, char *argv[])
|
||||
intel_mmio_use_pci_bar(config->pci_dev);
|
||||
|
||||
/* XXX: error handling */
|
||||
write(1, igt_global_mmio, config->pci_dev->regions[mmio_bar].size);
|
||||
if (write(1, igt_global_mmio, config->pci_dev->regions[mmio_bar].size) == -1)
|
||||
fprintf(stderr, "Error writing snapshot: %s", strerror(errno));
|
||||
|
||||
if (config->verbosity > 0)
|
||||
printf("use this with --mmio=FILE --devid=0x%04X\n",
|
||||
|
||||
Reference in New Issue
Block a user