]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: align strings in sd_notify() examples 32097/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2024 10:17:43 +0000 (12:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2024 12:41:56 +0000 (14:41 +0200)
I think this way it's easier to see that they are part of the same argument.

man/sd_notify.xml

index 22b351cad31f5ce55914ddfa7f628b7a44049848..e1c4073e7fc3292e47b6d0c67f1df5a96ac6edfa 100644 (file)
 
       <programlisting>
 sd_notifyf(0, "READY=1\n"
-           "STATUS=Processing requests…\n"
-           "MAINPID=%lu",
+              "STATUS=Processing requests…\n"
+              "MAINPID=%lu",
            (unsigned long) getpid());</programlisting>
     </example>
 
@@ -545,7 +545,7 @@ sd_notifyf(0, "READY=1\n"
 
       <programlisting>
 sd_notifyf(0, "STATUS=Failed to start up: %s\n"
-           "ERRNO=%i",
+              "ERRNO=%i",
            strerror_r(errnum, (char[1024]){}, 1024),
            errnum);</programlisting>
     </example>