[PATCH] signalfd.2: Prefer puts() to printf() in EXAMPLE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



puts() is saddened when printf() is used instead of it.
---
 man2/signalfd.2 |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/man2/signalfd.2 b/man2/signalfd.2
index 11eceee..33addbd 100644
--- a/man2/signalfd.2
+++ b/man2/signalfd.2
@@ -440,12 +440,12 @@ main(int argc, char *argv[])
             handle_error("read");

         if (fdsi.ssi_signo == SIGINT) {
-            printf("Got SIGINT\\n");
+            puts("Got SIGINT");
         } else if (fdsi.ssi_signo == SIGQUIT) {
-            printf("Got SIGQUIT\\n");
+            puts("Got SIGQUIT");
             exit(EXIT_SUCCESS);
         } else {
-            printf("Read unexpected signal\\n");
+            puts("Read unexpected signal");
         }
     }
 }
-- 
Vitaly Sinilin <vs@xxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux