From 5b1eeb5cae1492528642fc507ad5547bb14fec6f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 10 Nov 2020 07:44:17 +0900 Subject: [PATCH] examples/nxlines/nxlines_bkgd.c: Fix printf format warnings --- examples/nxlines/nxlines_bkgd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/nxlines/nxlines_bkgd.c b/examples/nxlines/nxlines_bkgd.c index ebaaa542a..867c7ab13 100644 --- a/examples/nxlines/nxlines_bkgd.c +++ b/examples/nxlines/nxlines_bkgd.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -307,7 +308,7 @@ void nxlines_test(NXWINDOW hwnd) vector.pt2.x = center.x - halfx; vector.pt2.y = center.y - halfy; - printf("Angle: %08x vector: (%d,%d)->(%d,%d)\n", + printf("Angle: %08" PRIx32 " vector: (%d,%d)->(%d,%d)\n", angle, vector.pt1.x, vector.pt1.y, vector.pt2.x, vector.pt2.y); /* Clear the previous line by overwriting it with the circle color */