]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
log: Add missing "%" in "%m" log format strings
authorFilipe Brandenburger <filbranden@gmail.com>
Tue, 24 Sep 2019 22:31:27 +0000 (15:31 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Sep 2019 07:28:26 +0000 (09:28 +0200)
These were clearly intended to be "%m" to display the human readable version
of the error stored in errno.

src/core/unit.c
src/shared/bootspec.c

index 9ea8c1e66c70ed78a55b34a566aff79a185a5604..b9fb7dbc0e134cd94b9b6610d4c83e3b26a99ecb 100644 (file)
@@ -2789,7 +2789,7 @@ int unit_enqueue_rewatch_pids(Unit *u) {
 
                 r = sd_event_source_set_priority(s, SD_EVENT_PRIORITY_IDLE);
                 if (r < 0)
-                        return log_error_errno(r, "Failed to adjust priority of event source for tidying watched PIDs: m");
+                        return log_error_errno(r, "Failed to adjust priority of event source for tidying watched PIDs: %m");
 
                 (void) sd_event_source_set_description(s, "tidy-watch-pids");
 
index 3b4c99e9ee9881ca5b04e02c06b3c4dc3794c088..355b1bebf610ac09ad38cfc356656a64543ca041 100644 (file)
@@ -876,7 +876,7 @@ static int verify_esp_blkid(
         errno = 0;
         r = blkid_probe_lookup_value(b, "PART_ENTRY_NUMBER", &v, NULL);
         if (r != 0)
-                return log_error_errno(errno ?: SYNTHETIC_ERRNO(EIO), "Failed to probe partition number of \"%s\": m", node);
+                return log_error_errno(errno ?: SYNTHETIC_ERRNO(EIO), "Failed to probe partition number of \"%s\": %m", node);
         r = safe_atou32(v, &part);
         if (r < 0)
                 return log_error_errno(r, "Failed to parse PART_ENTRY_NUMBER field.");