linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] rt-tests: printf format compile warning
@ 2012-05-03 19:48 Frank Rowand
  2012-05-03 21:13 ` Darren Hart
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Rowand @ 2012-05-03 19:48 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org, williams; +Cc: jkacur, dvhart


V2: use type casting instead of ugly constant in format string


Fix printf format string to fix compile warning for ARM 32 bit target.

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

Index: b/src/cyclictest/cyclictest.c
===================================================================
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1575,7 +1575,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: %llu\n", (unsigned long long)break_thread_value);
 		}
 	}
 	


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

end of thread, other threads:[~2012-05-03 22:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 19:48 [PATCH v2] rt-tests: printf format compile warning Frank Rowand
2012-05-03 21:13 ` Darren Hart
2012-05-03 21:26   ` Clark Williams
2012-05-03 22:37     ` John Kacur
2012-05-03 22:41       ` John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).