summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-08-10 17:29:14 +0000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-14 11:12:00 +1000
commit6f157d5e4154069174c6b6268a7f13bb48a74593 (patch)
tree00bb328f13b48da8f562a5b674c991e9884929ba /lib
parenta82b9c070a2acb99c81137cb0b6407244646276f (diff)
downloadtalos-petitboot-6f157d5e4154069174c6b6268a7f13bb48a74593.zip
talos-petitboot-6f157d5e4154069174c6b6268a7f13bb48a74593.tar.gz
lib/efi: Log operations to debug log
Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi/efivar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi/efivar.c b/lib/efi/efivar.c
index 91b2507..a0c21b5 100644
--- a/lib/efi/efivar.c
+++ b/lib/efi/efivar.c
@@ -109,6 +109,7 @@ delete:
pb_log_fn("unlink failed: (%d) %s\n", errno, strerror(errno));
goto exit;
}
+ pb_debug_fn("Deleted: '%s'\n", name);
exit:
talloc_free(path);
close(fd);
@@ -159,6 +160,7 @@ int efi_get_variable(void *ctx, const char *guidstr, const char *name,
(*efi_data)->data_size = total;
(*efi_data)->data = (*efi_data)->fill;
memcpy((*efi_data)->data, buf + sizeof (uint32_t), total);
+ pb_debug_fn("Found: '%s'='%s'\n", name, (const char *)(*efi_data)->data);
rc = 0;
exit:
@@ -199,6 +201,7 @@ int efi_set_variable(const char *guidstr, const char *name,
goto exit;
}
rc = 0;
+ pb_debug_fn("Set: '%s'='%s'\n", name, (const char *)efi_data->data);
exit:
talloc_free(path);
OpenPOWER on IntegriCloud