changeset 9634:ae66ca8fbe28

Fix a printf statement.
author Bruno Haible <bruno@clisp.org>
date Fri, 18 Jan 2008 02:14:04 +0100
parents dd11dbd9160b
children 3a9052fb8e95
files ChangeLog tests/test-gethostname.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-gethostname.c
+++ b/tests/test-gethostname.c
@@ -36,7 +36,7 @@
 
   if (rc != 0)
     {
-      printf ("gethostname failed, rc %d errno %d\n", errno);
+      printf ("gethostname failed, rc %d errno %d\n", rc, errno);
       return 1;
     }