From 8d3473f01d7ccdbc456f56c7797f4d164f5eb7a0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 15 Feb 2023 08:00:00 +0000 Subject: [PATCH] src: fix several typos in log messages --- src/nspawn/nspawn-oci.c | 2 +- src/shared/libfido2-util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nspawn/nspawn-oci.c b/src/nspawn/nspawn-oci.c index 02142a9352..3c6bfd3eaf 100644 --- a/src/nspawn/nspawn-oci.c +++ b/src/nspawn/nspawn-oci.c @@ -1807,7 +1807,7 @@ static int oci_seccomp_args(const char *name, JsonVariant *v, JsonDispatchFlags expected = p->op == SCMP_CMP_MASKED_EQ ? 4 : 3; if (r != expected) - json_log(e, flags|JSON_WARNING, 0, "Wrong number of system call arguments for JSON data data, ignoring."); + json_log(e, flags|JSON_WARNING, 0, "Wrong number of system call arguments for JSON data, ignoring."); /* Note that we are a bit sloppy here and do not insist that SCMP_CMP_MASKED_EQ gets two datum values, * and the other only one. That's because buildah for example by default calls things with diff --git a/src/shared/libfido2-util.c b/src/shared/libfido2-util.c index aa2d8b3ff1..6802ad0d3d 100644 --- a/src/shared/libfido2-util.c +++ b/src/shared/libfido2-util.c @@ -488,7 +488,7 @@ static int fido2_use_hmac_hash_specific_token( * it gracefully (also see below.) */ if (has_up && (required & (FIDO2ENROLL_UP|FIDO2ENROLL_UP_IF_NEEDED)) == FIDO2ENROLL_UP_IF_NEEDED) { - log_notice("%s%sGot unsupported option error when when user presence test is turned off. Trying with user presence test turned on.", + log_notice("%s%sGot unsupported option error when user presence test is turned off. Trying with user presence test turned on.", emoji_enabled() ? special_glyph(SPECIAL_GLYPH_TOUCH) : "", emoji_enabled() ? " " : ""); retry_with_up = true; @@ -957,7 +957,7 @@ int fido2_generate_hmac_hash( * slightly more defensively. */ if (has_up && !FLAGS_SET(lock_with, FIDO2ENROLL_UP)) { - log_notice("%s%sGot unsupported option error when when user presence test is turned off. Trying with user presence test turned on.", + log_notice("%s%sGot unsupported option error when user presence test is turned off. Trying with user presence test turned on.", emoji_enabled() ? special_glyph(SPECIAL_GLYPH_TOUCH) : "", emoji_enabled() ? " " : ""); retry_with_up = true;