This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix compiler warning in proc-why.c


Committed as obvious.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* proc-why.c (proc_prettyfprint_why): Fix format string.

 
Index: proc-why.c
===================================================================
RCS file: /cvs/src/src/gdb/proc-why.c,v
retrieving revision 1.3
diff -u -p -r1.3 proc-why.c
--- proc-why.c 6 Mar 2001 08:21:11 -0000 1.3
+++ proc-why.c 15 Aug 2004 12:11:35 -0000
@@ -154,7 +154,7 @@ proc_prettyfprint_why (FILE *file, unsig
 #endif
 #ifdef PR_DEAD
 	case PR_DEAD:
-	  fprintf (file, "Exit status: %d\n", what);
+	  fprintf (file, "Exit status: %ld\n", what);
 	  break;
 #endif
 	default:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]