From: Lennart Poettering Date: Fri, 15 Jul 2022 13:24:24 +0000 (+0200) Subject: import: fix format strings X-Git-Tag: v252-rc1~633 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e4960bf17937f8306bfd18cc29dad7a14041cb;p=thirdparty%2Fsystemd.git import: fix format strings --- diff --git a/src/core/import-creds.c b/src/core/import-creds.c index 3324a6eaab1..4685e43f475 100644 --- a/src/core/import-creds.c +++ b/src/core/import-creds.c @@ -580,12 +580,12 @@ static int import_credentials_smbios(ImportCredentialContext *c) { r = read_virtual_file(p, sizeof(dmi_field_header) + CREDENTIALS_TOTAL_SIZE_MAX, (char**) &data, &size); if (r < 0) { /* Once we reach ENOENT there are no more DMI Type 11 fields around. */ - log_full_errno(r == -ENOENT ? LOG_DEBUG : LOG_WARNING, r, "Failed to open '%p', ignoring: %m", p); + log_full_errno(r == -ENOENT ? LOG_DEBUG : LOG_WARNING, r, "Failed to open '%s', ignoring: %m", p); break; } if (size < offsetof(struct dmi_field_header, contents)) - return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "DMI field header of '%p' too short.", p); + return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "DMI field header of '%s' too short.", p); dmi_field_header = data; if (dmi_field_header->type != 11 ||