shutdown: adjust log message
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 17:31:38 +0000 (18:31 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Jan 2022 15:05:59 +0000 (16:05 +0100)
Instead of saying "with options 'n/a'", let's just say "with options ''".
We really don't have any options.

src/shutdown/umount.c

index f5a2cb20c105742e588748ae674078968af6e211..ed45ea9edb7271bbd73dfe8b8c23d213dc2d25a9 100644 (file)
@@ -522,7 +522,7 @@ static int remount_with_timeout(MountPoint *m, int umount_log_level) {
         if (r < 0)
                 return r;
         if (r == 0) {
-                log_info("Remounting '%s' read-only with options '%s'.", m->path, strna(m->remount_options));
+                log_info("Remounting '%s' read-only with options '%s'.", m->path, strempty(m->remount_options));
 
                 /* Start the mount operation here in the child */
                 r = mount(NULL, m->path, NULL, m->remount_flags, m->remount_options);