summaryrefslogtreecommitdiff
path: root/apps/examples/nxlines/nxlines_bkgd.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 08:33:00 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 08:33:00 -0600
commitfdb1d0a4df496e7a3232a950d5c72231363cf67a (patch)
tree5d18c1b4f9241f17396ec663ff4425bf21e6b57a /apps/examples/nxlines/nxlines_bkgd.c
parent1753a0251a941fa4d1a5b95aec631209e9957670 (diff)
downloadpx4-nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.tar.gz
px4-nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.tar.bz2
px4-nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.zip
Remove non-portable references to syslog from apps/examples
Diffstat (limited to 'apps/examples/nxlines/nxlines_bkgd.c')
-rw-r--r--apps/examples/nxlines/nxlines_bkgd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/examples/nxlines/nxlines_bkgd.c b/apps/examples/nxlines/nxlines_bkgd.c
index b9383fd1d..dcf2a10bd 100644
--- a/apps/examples/nxlines/nxlines_bkgd.c
+++ b/apps/examples/nxlines/nxlines_bkgd.c
@@ -164,9 +164,9 @@ static void nxlines_position(NXWINDOW hwnd, FAR const struct nxgl_size_s *size,
static void nxlines_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos,
uint8_t buttons, FAR void *arg)
{
- message("nxlines_mousein: hwnd=%p pos=(%d,%d) button=%02x\n",
- hwnd, pos->x, pos->y, buttons);
-}
+ printf("nxlines_mousein: hwnd=%p pos=(%d,%d) button=%02x\n",
+ hwnd, pos->x, pos->y, buttons);
+
#endif
/****************************************************************************
@@ -183,7 +183,7 @@ static void nxlines_kbdin(NXWINDOW hwnd, uint8_t nch, FAR const uint8_t *ch,
* expected.
*/
- message("nxlines_kbdin: Unexpected keyboard callback\n");
+ printf("nxlines_kbdin: Unexpected keyboard callback\n");
}
#endif
@@ -225,7 +225,7 @@ void nxlines_test(NXWINDOW hwnd)
ret = nx_fillcircle((NXWINDOW)hwnd, &center, radius, color);
if (ret < 0)
{
- message("nxlines_test: nx_fillcircle failed: %d\n", ret);
+ printf("nxlines_test: nx_fillcircle failed: %d\n", ret);
}
/* Draw the circular border */
@@ -235,7 +235,7 @@ void nxlines_test(NXWINDOW hwnd)
CONFIG_EXAMPLES_NXLINES_BORDERWIDTH, color);
if (ret < 0)
{
- message("nxlines_test: nx_fillcircle failed: %d\n", ret);
+ printf("nxlines_test: nx_fillcircle failed: %d\n", ret);
}
/* Back off the radius to account for the thickness of border line
@@ -287,8 +287,8 @@ void nxlines_test(NXWINDOW hwnd)
vector.pt2.x = center.x - halfx;
vector.pt2.y = center.y - halfy;
- message("Angle: %08x vector: (%d,%d)->(%d,%d)\n",
- angle, vector.pt1.x, vector.pt1.y, vector.pt2.x, vector.pt2.y);
+ printf("Angle: %08x 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 */
@@ -296,7 +296,7 @@ void nxlines_test(NXWINDOW hwnd)
ret = nx_drawline((NXWINDOW)hwnd, &previous, CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color);
if (ret < 0)
{
- message("nxlines_test: nx_drawline failed clearing: %d\n", ret);
+ printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);
}
/* Draw the new line */
@@ -305,7 +305,7 @@ void nxlines_test(NXWINDOW hwnd)
ret = nx_drawline((NXWINDOW)hwnd, &vector, CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color);
if (ret < 0)
{
- message("nxlines_test: nx_drawline failed clearing: %d\n", ret);
+ printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);
}
/* Set up for the next time through the loop then sleep for a bit. */