Skip to content

Commit 2c9a784

Browse files
committed
don't spam with 'error finding patch' for ENOENT
Signed-off-by: Pavel Boldin <[email protected]>
1 parent e3eec08 commit 2c9a784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/kpatch_user.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ storage_lookup_patches(kpatch_storage_t *storage, kpatch_process_t *proc)
442442

443443
ret = storage_load_patch(storage, bid, &pkpfile);
444444
if (ret == PATCH_OPEN_ERROR) {
445-
kplogerror("error finding patch for %s (%s)\n",
446-
o->name, bid);
445+
if (errno != ENOENT)
446+
kplogerror("error finding patch for %s (%s)\n",
447+
o->name, bid);
447448
continue;
448449
}
449450

0 commit comments

Comments
 (0)