examples/nxlines/nxlines_bkgd.c: Fix printf format warnings
This commit is contained in:
parent
5ee054186c
commit
5b1eeb5cae
@ -46,6 +46,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <fixedmath.h>
|
#include <fixedmath.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <nuttx/nx/nx.h>
|
#include <nuttx/nx/nx.h>
|
||||||
#include <nuttx/nx/nxglib.h>
|
#include <nuttx/nx/nxglib.h>
|
||||||
@ -307,7 +308,7 @@ void nxlines_test(NXWINDOW hwnd)
|
|||||||
vector.pt2.x = center.x - halfx;
|
vector.pt2.x = center.x - halfx;
|
||||||
vector.pt2.y = center.y - halfy;
|
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);
|
angle, vector.pt1.x, vector.pt1.y, vector.pt2.x, vector.pt2.y);
|
||||||
|
|
||||||
/* Clear the previous line by overwriting it with the circle color */
|
/* Clear the previous line by overwriting it with the circle color */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user