Skip to content

Commit 5f257e5

Browse files
committed
dont spam with "can't get buildid"
Signed-off-by: Pavel Boldin <[email protected]>
1 parent 2c9a784 commit 5f257e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/kpatch_user.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ storage_lookup_patches(kpatch_storage_t *storage, kpatch_process_t *proc)
439439
continue;
440440

441441
bid = kpatch_get_buildid(o);
442+
if (bid == NULL) {
443+
kpinfo("can't get buildid for %s\n",
444+
o->name);
445+
continue;
446+
}
442447

443448
ret = storage_load_patch(storage, bid, &pkpfile);
444449
if (ret == PATCH_OPEN_ERROR) {
@@ -1467,7 +1472,7 @@ object_info(struct info_data *data, struct object_file *o,
14671472

14681473
buildid = kpatch_get_buildid(o);
14691474
if (buildid == NULL) {
1470-
kperr("can't get buildid for %s\n", o->name);
1475+
kpinfo("can't get buildid for %s\n", o->name);
14711476
return 0;
14721477
}
14731478

0 commit comments

Comments
 (0)