Fix a printf statement.
authorBruno Haible <bruno@clisp.org>
Fri, 18 Jan 2008 01:14:04 +0000 (02:14 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 18 Jan 2008 01:14:04 +0000 (02:14 +0100)
ChangeLog
tests/test-gethostname.c

index f52d4c2cdf531f5ee775770fb654831a3ee77ac4..9347ee400e4934fe3afe0a1f41b591ad61dd5b32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-gethostname.c (main): Fix printf statement.
+
 2008-01-17  Simon Josefsson  <simon@josefsson.org>
 
        * modules/gethostname-tests: New file.
index d298b7a887340e190e05648617e6976909221284..01f9369934b2e1de70bf3a0973f93856fd808a27 100644 (file)
@@ -36,7 +36,7 @@ main (int argc, char *argv[])
 
   if (rc != 0)
     {
-      printf ("gethostname failed, rc %d errno %d\n", errno);
+      printf ("gethostname failed, rc %d errno %d\n", rc, errno);
       return 1;
     }