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 f52d4c2..9347ee4 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 d298b7a..01f9369 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;
     }