All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] rt-tests: printf format compile warning
@ 2012-05-02  2:35 Frank Rowand
  2012-05-02  2:44 ` [PATCH 2/4] rt-tests: cyclictest segfault with '-a' Frank Rowand
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Frank Rowand @ 2012-05-02  2:35 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org, williams; +Cc: jkacur, dvhart


Fix printf format string to allow for 32 bit and 64 bit word size.

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
---
 src/cyclictest/cyclictest.c |    3 	2 +	1 -	0 !
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: b/src/cyclictest/cyclictest.c
===================================================================
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -24,6 +24,7 @@
 #include <time.h>
 #include <errno.h>
 #include <limits.h>
+#include <inttypes.h>
 #include <linux/unistd.h>
 
 #include <sys/prctl.h>
@@ -1575,7 +1576,7 @@ int main(int argc, char **argv)
 		print_tids(parameters, num_threads);
 		if (break_thread_id) {
 			printf("# Break thread: %d\n", break_thread_id);
-			printf("# Break value: %lu\n", break_thread_value);
+			printf("# Break value: %" PRIu64 "\n", break_thread_value);
 		}
 	}
 	


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-02 20:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-02  2:35 [PATCH 1/4] rt-tests: printf format compile warning Frank Rowand
2012-05-02  2:44 ` [PATCH 2/4] rt-tests: cyclictest segfault with '-a' Frank Rowand
2012-05-02 20:37   ` Darren Hart
2012-05-02  2:45 ` [PATCH 3/4] rt-tests: cyclictest avoid unneeded warning Frank Rowand
2012-05-02 20:38   ` Darren Hart
2012-05-02  2:45 ` [PATCH 4/4] rt-tests: cyclictest warn of interaction between '-a', '--smp', and '--numa' Frank Rowand
2012-05-02 20:41   ` Darren Hart
2012-05-02 20:36 ` [PATCH 1/4] rt-tests: printf format compile warning Darren Hart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.