dwarves: Fix cus__load_files() success return value
If we processed at least one file we should return 0 to mean success.
Fixes: 02a456f5f5
("pahole: Search and use running kernel vmlinux when no file is passed")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
02a456f5f5
commit
2a092d6145
|
@ -1850,7 +1850,7 @@ int cus__load_files(struct cus *cus, struct conf_load *conf,
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return i ?: cus__load_running_kernel(cus, conf);
|
return i ? 0 : cus__load_running_kernel(cus, conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
int cus__fprintf_load_files_err(struct cus *cus, const char *tool, char *argv[], int err, FILE *output)
|
int cus__fprintf_load_files_err(struct cus *cus, const char *tool, char *argv[], int err, FILE *output)
|
||||||
|
|
Loading…
Reference in New Issue