Add _ to front of remaining debug macros
This commit is contained in:
parent
cc03ecefc8
commit
5098539063
@ -128,7 +128,7 @@ static int chat_script_preset(FAR struct chat_app* priv, int script_number)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
info("preset script %d\n", script_number);
|
||||
_info("preset script %d\n", script_number);
|
||||
|
||||
switch (script_number)
|
||||
{
|
||||
@ -340,11 +340,11 @@ int chat_main(int argc, FAR char** argv)
|
||||
priv.script_dynalloc = false;
|
||||
strncpy(priv.tty, CONFIG_EXAMPLES_CHAT_TTY_DEVNODE, CHAT_TTYNAME_SIZE-1);
|
||||
|
||||
info("parsing the arguments\n");
|
||||
_info("parsing the arguments\n");
|
||||
ret = chat_parse_args((FAR struct chat_app*) &priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
info("Command line parsing failed: code %d, errno %d\n", ret, errno);
|
||||
_info("Command line parsing failed: code %d, errno %d\n", ret, errno);
|
||||
chat_show_usage();
|
||||
exit_code = EXIT_FAILURE;
|
||||
goto with_script;
|
||||
@ -357,20 +357,20 @@ int chat_main(int argc, FAR char** argv)
|
||||
goto no_script;
|
||||
}
|
||||
|
||||
info("opening %s\n", priv.tty);
|
||||
_info("opening %s\n", priv.tty);
|
||||
priv.ctl.fd = open(priv.tty, O_RDWR);
|
||||
if (priv.ctl.fd < 0)
|
||||
{
|
||||
info("Failed to open %s: %d\n", priv.tty, errno);
|
||||
_info("Failed to open %s: %d\n", priv.tty, errno);
|
||||
exit_code = EXIT_FAILURE;
|
||||
goto with_script;
|
||||
}
|
||||
|
||||
info("setting up character device\n");
|
||||
_info("setting up character device\n");
|
||||
ret = chat_chardev(&priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
info("Failed to open %s: %d\n", priv.tty, errno);
|
||||
_info("Failed to open %s: %d\n", priv.tty, errno);
|
||||
exit_code = EXIT_FAILURE;
|
||||
goto with_tty_dev;
|
||||
}
|
||||
@ -390,6 +390,6 @@ no_script:
|
||||
fflush(stderr);
|
||||
fflush(stdout);
|
||||
|
||||
info("Exit code %d\n", exit_code);
|
||||
_info("Exit code %d\n", exit_code);
|
||||
return exit_code;
|
||||
}
|
||||
|
@ -106,16 +106,16 @@
|
||||
|
||||
#ifdef CONFIG_CPP_HAVE_VARARGS
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message(format, ...) info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# define message(format, ...) _info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# else
|
||||
# define message(format, ...) printf(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
|
||||
# endif
|
||||
#else
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message info
|
||||
# define errmsg _err
|
||||
# define message _info
|
||||
# define errmsg _err
|
||||
# else
|
||||
# define message printf
|
||||
# define errmsg printf
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# Generic file system stress test appliation info
|
||||
# Generic file system stress test application info
|
||||
|
||||
APPNAME = fstest
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
|
@ -63,10 +63,10 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxdbg _err
|
||||
# define cxxdbg _err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -96,23 +96,23 @@ static int ltdc_init_surface(int lid, uint32_t mode)
|
||||
|
||||
if (!sur->layer)
|
||||
{
|
||||
_err("ERROR: up_ltdcgetlayer() failed\n");
|
||||
_err("ERROR: up_ltdcgetlayer() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (sur->layer->getvideoinfo(sur->layer, &sur->vinfo) != OK)
|
||||
{
|
||||
_err("ERROR: getvideoinfo() failed\n");
|
||||
_err("ERROR: getvideoinfo() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (sur->layer->getplaneinfo(sur->layer, 0, &sur->pinfo) != OK)
|
||||
{
|
||||
_err("ERROR: getplaneinfo() failed\n");
|
||||
_err("ERROR: getplaneinfo() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
info("layer %d is configured with: xres = %d, yres = %d,"
|
||||
_info("layer %d is configured with: xres = %d, yres = %d,"
|
||||
"fb start address = %p, fb size = %d, fmt = %d, bpp = %d\n",
|
||||
lid, sur->vinfo.xres, sur->vinfo.yres, sur->pinfo.fbmem, sur->pinfo.fblen,
|
||||
sur->vinfo.fmt, sur->pinfo.bpp);
|
||||
@ -133,7 +133,7 @@ static int ltdc_init_surface(int lid, uint32_t mode)
|
||||
|
||||
if (sur->layer->getlid(sur->layer, &lid, LTDC_LAYER_DMA2D) != OK)
|
||||
{
|
||||
_err("ERROR: getlid() failed\n");
|
||||
_err("ERROR: getlid() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -141,7 +141,7 @@ static int ltdc_init_surface(int lid, uint32_t mode)
|
||||
|
||||
if (sur->dma2d == NULL)
|
||||
{
|
||||
_err("ERROR: up_dma2dgetlayer() failed\n");
|
||||
_err("ERROR: up_dma2dgetlayer() failed\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
@ -168,7 +168,7 @@ static void ltdc_setget_test(void)
|
||||
FAR struct ltdc_area_s area;
|
||||
FAR struct surface *sur = ltdc_get_surface(LTDC_LAYER_ACTIVE);
|
||||
|
||||
info("Perform set and get test\n");
|
||||
_info("Perform set and get test\n");
|
||||
|
||||
/* setalpha */
|
||||
|
||||
@ -176,14 +176,14 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setalpha() failed\n");
|
||||
_err("ERROR: setalpha() failed\n");
|
||||
}
|
||||
|
||||
ret = sur->layer->getalpha(sur->layer, &alpha);
|
||||
|
||||
if (ret != OK || alpha != 0x7f)
|
||||
{
|
||||
_err("ERROR: getalpha() failed\n");
|
||||
_err("ERROR: getalpha() failed\n");
|
||||
}
|
||||
|
||||
/* setcolor */
|
||||
@ -192,14 +192,14 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setcolor() failed\n");
|
||||
_err("ERROR: setcolor() failed\n");
|
||||
}
|
||||
|
||||
ret = sur->layer->getcolor(sur->layer, &color);
|
||||
|
||||
if (ret != OK || color != 0x11223344)
|
||||
{
|
||||
_err("ERROR: getcolor() failed\n");
|
||||
_err("ERROR: getcolor() failed\n");
|
||||
}
|
||||
|
||||
/* setcolorkey */
|
||||
@ -208,14 +208,14 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setcolorkey() failed\n");
|
||||
_err("ERROR: setcolorkey() failed\n");
|
||||
}
|
||||
|
||||
ret = sur->layer->getcolorkey(sur->layer, &color);
|
||||
|
||||
if (ret != OK || color != 0x55667788)
|
||||
{
|
||||
_err("ERROR: getcolorkey() failed\n");
|
||||
_err("ERROR: getcolorkey() failed\n");
|
||||
}
|
||||
|
||||
/* setblendmode */
|
||||
@ -224,14 +224,14 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setblendmode() failed\n");
|
||||
_err("ERROR: setblendmode() failed\n");
|
||||
}
|
||||
|
||||
ret = sur->layer->getblendmode(sur->layer, &mode);
|
||||
|
||||
if (ret != OK || mode != LTDC_BLEND_NONE)
|
||||
{
|
||||
_err("ERROR: getblendmode() failed\n");
|
||||
_err("ERROR: getblendmode() failed\n");
|
||||
}
|
||||
|
||||
/* setarea */
|
||||
@ -246,7 +246,7 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setarea() failed\n");
|
||||
_err("ERROR: setarea() failed\n");
|
||||
}
|
||||
|
||||
ret = sur->layer->getarea(sur->layer, &area, &xpos, &ypos);
|
||||
@ -255,7 +255,7 @@ static void ltdc_setget_test(void)
|
||||
area.xpos != sur->vinfo.xres/4 || area.ypos != sur->vinfo.yres/4 ||
|
||||
area.xres != sur->vinfo.xres/2 || area.yres != sur->vinfo.yres/2)
|
||||
{
|
||||
_err("ERROR: getarea() failed\n");
|
||||
_err("ERROR: getarea() failed\n");
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FB_CMAP
|
||||
@ -275,7 +275,7 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setclut() failed\n");
|
||||
_err("ERROR: setclut() failed\n");
|
||||
}
|
||||
|
||||
/* Clear all colors to black */
|
||||
@ -291,7 +291,7 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: getclut() failed\n");
|
||||
_err("ERROR: getclut() failed\n");
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FB_TRANSPARENCY
|
||||
@ -305,7 +305,7 @@ static void ltdc_setget_test(void)
|
||||
ltdc_cmpcolor(g_cmap.green, cmap->green, LTDC_EXAMPLE_NCOLORS))
|
||||
#endif
|
||||
{
|
||||
_err("ERROR: getclut() failed, unexpected cmap content\n");
|
||||
_err("ERROR: getclut() failed, unexpected cmap content\n");
|
||||
}
|
||||
|
||||
ltdc_deletecmap(cmap);
|
||||
@ -318,7 +318,7 @@ static void ltdc_setget_test(void)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: setclut() failed\n");
|
||||
_err("ERROR: setclut() failed\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -363,22 +363,22 @@ static void ltdc_color_test(void)
|
||||
|
||||
/* Default Color black */
|
||||
|
||||
info("Set default color to black\n");
|
||||
_info("Set default color to black\n");
|
||||
|
||||
sur->layer->setcolor(sur->layer, 0xff000000);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
/* Set active layer to the upper half of the screen */
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer, should be black outside the colorful rectangle\n");
|
||||
_info("Update the layer, should be black outside the colorful rectangle\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -386,11 +386,11 @@ static void ltdc_color_test(void)
|
||||
|
||||
/* Default Color red */
|
||||
|
||||
info("Update the layer, should be red outside the colorful rectangle\n");
|
||||
_info("Update the layer, should be red outside the colorful rectangle\n");
|
||||
|
||||
sur->layer->setcolor(sur->layer, 0xffff0000);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -398,11 +398,11 @@ static void ltdc_color_test(void)
|
||||
|
||||
/* Default Color green */
|
||||
|
||||
info("Update the layer, should be green outside the colorful rectangle\n");
|
||||
_info("Update the layer, should be green outside the colorful rectangle\n");
|
||||
|
||||
sur->layer->setcolor(sur->layer, 0xff00ff00);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -410,11 +410,11 @@ static void ltdc_color_test(void)
|
||||
|
||||
/* Default Color blue */
|
||||
|
||||
info("Update the layer, should be blue outside the colorful rectangle\n");
|
||||
_info("Update the layer, should be blue outside the colorful rectangle\n");
|
||||
|
||||
sur->layer->setcolor(sur->layer, 0xff0000ff);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -427,18 +427,18 @@ static void ltdc_color_test(void)
|
||||
area.xres = sur->vinfo.xres;
|
||||
area.yres = sur->vinfo.yres;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
/* Default Color black */
|
||||
|
||||
info("Set default color to black\n");
|
||||
_info("Set default color to black\n");
|
||||
|
||||
sur->layer->setcolor(sur->layer, 0);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -468,7 +468,7 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
/* Resize active layer */
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
@ -479,11 +479,11 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
/* Color key white */
|
||||
|
||||
info("Set colorkey to white\n");
|
||||
_info("Set colorkey to white\n");
|
||||
|
||||
sur->layer->setcolorkey(sur->layer, 0xffffff);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -491,11 +491,11 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
/* Color key red */
|
||||
|
||||
info("Set colorkey to red\n");
|
||||
_info("Set colorkey to red\n");
|
||||
|
||||
sur->layer->setcolorkey(sur->layer, 0xff0000);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -503,11 +503,11 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
/* Color key green */
|
||||
|
||||
info("Set colorkey to green\n");
|
||||
_info("Set colorkey to green\n");
|
||||
|
||||
sur->layer->setcolorkey(sur->layer, 0xff00);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -515,15 +515,15 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
/* Color key red */
|
||||
|
||||
info("Set colorkey to blue\n");
|
||||
_info("Set colorkey to blue\n");
|
||||
|
||||
sur->layer->setcolorkey(sur->layer, 0xff);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
info("Disable colorkey\n");
|
||||
_info("Disable colorkey\n");
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
@ -536,7 +536,7 @@ static void ltdc_colorkey_test(void)
|
||||
area.xres = sur->vinfo.xres;
|
||||
area.yres = sur->vinfo.yres;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, 0, 0);
|
||||
@ -545,7 +545,7 @@ static void ltdc_colorkey_test(void)
|
||||
|
||||
sur->layer->setblendmode(sur->layer, LTDC_BLEND_NONE);
|
||||
|
||||
info("Update the layer\n");
|
||||
_info("Update the layer\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK|LTDC_SYNC_WAIT);
|
||||
|
||||
@ -568,7 +568,7 @@ static void ltdc_area_test(void)
|
||||
struct ltdc_area_s area;
|
||||
FAR struct surface *sur = ltdc_get_surface(LTDC_LAYER_ACTIVE);
|
||||
|
||||
info("Perform area test\n");
|
||||
_info("Perform area test\n");
|
||||
|
||||
ltdc_simple_draw(&sur->vinfo, &sur->pinfo);
|
||||
|
||||
@ -581,12 +581,12 @@ static void ltdc_area_test(void)
|
||||
area.xres = sur->vinfo.xres/2;
|
||||
area.yres = sur->vinfo.yres/2;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer, to show the upper left rectangle of the screen\n");
|
||||
_info("Update the layer, to show the upper left rectangle of the screen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -599,12 +599,12 @@ static void ltdc_area_test(void)
|
||||
area.xres = sur->vinfo.xres/2;
|
||||
area.yres = sur->vinfo.yres/2;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer, to show the upper right rectangle of the screen\n");
|
||||
_info("Update the layer, to show the upper right rectangle of the screen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -617,12 +617,12 @@ static void ltdc_area_test(void)
|
||||
area.xres = sur->vinfo.xres/2;
|
||||
area.yres = sur->vinfo.yres/2;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer, to show the lower left rectangle of the screen\n");
|
||||
_info("Update the layer, to show the lower left rectangle of the screen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -635,12 +635,12 @@ static void ltdc_area_test(void)
|
||||
area.xres = sur->vinfo.xres/2;
|
||||
area.yres = sur->vinfo.yres/2;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer, to show the lower right rectangle of the screen\n");
|
||||
_info("Update the layer, to show the lower right rectangle of the screen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -648,7 +648,7 @@ static void ltdc_area_test(void)
|
||||
|
||||
/* Perform layer positioning */
|
||||
|
||||
info("Perform positioning test\n");
|
||||
_info("Perform positioning test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -712,7 +712,7 @@ static void ltdc_area_test(void)
|
||||
|
||||
/* Perform move */
|
||||
|
||||
info("Perform move test\n");
|
||||
_info("Perform move test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -786,7 +786,7 @@ static void ltdc_area_test(void)
|
||||
|
||||
/* Perform Reference position */
|
||||
|
||||
info("Perform reference positioning test\n");
|
||||
_info("Perform reference positioning test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -862,12 +862,12 @@ static void ltdc_area_test(void)
|
||||
area.xres = sur->vinfo.xres;
|
||||
area.yres = sur->vinfo.yres;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Update the layer to fullscreen\n");
|
||||
_info("Update the layer to fullscreen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -893,7 +893,7 @@ static void ltdc_common_test(void)
|
||||
struct ltdc_area_s area;
|
||||
FAR struct surface *sur;
|
||||
|
||||
info("Set layer 2 to the active layer, blend with subjacent layer 1\n");
|
||||
_info("Set layer 2 to the active layer, blend with subjacent layer 1\n");
|
||||
|
||||
sur = ltdc_get_surface(LTDC_LAYER_TOP);
|
||||
|
||||
@ -905,7 +905,7 @@ static void ltdc_common_test(void)
|
||||
|
||||
/* Perform area test */
|
||||
|
||||
info("Perform area test\n");
|
||||
_info("Perform area test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -1026,7 +1026,7 @@ static void ltdc_common_test(void)
|
||||
|
||||
/* Perform positioning test */
|
||||
|
||||
info("Perform positioning test\n");
|
||||
_info("Perform positioning test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -1145,7 +1145,7 @@ static void ltdc_common_test(void)
|
||||
|
||||
/* Perform Reference position */
|
||||
|
||||
info("Perform reference positioning test\n");
|
||||
_info("Perform reference positioning test\n");
|
||||
|
||||
/* Set layer in the middle of the screen */
|
||||
|
||||
@ -1271,7 +1271,7 @@ static void ltdc_common_test(void)
|
||||
area.xres = sur->vinfo.xres;
|
||||
area.yres = sur->vinfo.yres;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
sur->layer->setarea(sur->layer, &area, area.xpos, area.ypos);
|
||||
@ -1281,7 +1281,7 @@ static void ltdc_common_test(void)
|
||||
sur->layer->setcolorkey(sur->layer, 0);
|
||||
sur->layer->setblendmode(sur->layer, LTDC_BLEND_NONE);
|
||||
|
||||
info("Update the layer to fullscreen\n");
|
||||
_info("Update the layer to fullscreen\n");
|
||||
|
||||
sur->layer->update(sur->layer, LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -1306,16 +1306,16 @@ static void ltdc_alpha_blend_test(void)
|
||||
|
||||
/* Ensure operation on layer 2 */
|
||||
|
||||
info("Set layer 2 to the active layer, blend with subjacent layer 1\n");
|
||||
_info("Set layer 2 to the active layer, blend with subjacent layer 1\n");
|
||||
|
||||
top = ltdc_get_surface(LTDC_LAYER_TOP);
|
||||
bottom = ltdc_get_surface(LTDC_LAYER_BOTTOM);
|
||||
|
||||
info("top = %p, bottom = %p\n", top->pinfo.fbmem, bottom->pinfo.fbmem);
|
||||
_info("top = %p, bottom = %p\n", top->pinfo.fbmem, bottom->pinfo.fbmem);
|
||||
|
||||
ltdc_simple_draw(&top->vinfo, &top->pinfo);
|
||||
|
||||
info("Fill layer1 with color black\n");
|
||||
_info("Fill layer1 with color black\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
@ -1326,26 +1326,26 @@ static void ltdc_alpha_blend_test(void)
|
||||
area.xres = top->vinfo.xres/2;
|
||||
area.yres = top->vinfo.yres/2;
|
||||
|
||||
info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
_info("Set area to xpos = %d, ypos = %d, xres = %d, yres = %d\n",
|
||||
area.xpos, area.ypos, area.xres, area.yres);
|
||||
|
||||
top->layer->setarea(top->layer, &area, area.xpos, area.ypos);
|
||||
|
||||
info("Set alpha blending with bottom layer1\n");
|
||||
_info("Set alpha blending with bottom layer1\n");
|
||||
|
||||
top->layer->setblendmode(top->layer, LTDC_BLEND_ALPHA);
|
||||
info("Disable blending for bottom layer1 to make the layer color visible\n");
|
||||
_info("Disable blending for bottom layer1 to make the layer color visible\n");
|
||||
|
||||
bottom->layer->setblendmode(bottom->layer, LTDC_BLEND_NONE);
|
||||
bottom->layer->setalpha(bottom->layer, 0xff);
|
||||
|
||||
info("Fill bottom layer1 with color black\n");
|
||||
_info("Fill bottom layer1 with color black\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
ltdc_color(&bottom->vinfo, LTDC_BLACK));
|
||||
|
||||
info("Blend in black subjacent layer\n");
|
||||
_info("Blend in black subjacent layer\n");
|
||||
|
||||
for (i = 255; i >= 0; i--)
|
||||
{
|
||||
@ -1353,13 +1353,13 @@ static void ltdc_alpha_blend_test(void)
|
||||
top->layer->update(top->layer, LTDC_UPDATE_SIM|LTDC_SYNC_VBLANK);
|
||||
}
|
||||
|
||||
info("Fill bottom layer1 with color red\n");
|
||||
_info("Fill bottom layer1 with color red\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
ltdc_color(&bottom->vinfo, LTDC_RED));
|
||||
|
||||
info("Blend in red subjacent layer\n");
|
||||
_info("Blend in red subjacent layer\n");
|
||||
|
||||
for (i = 255; i >= 0; i--)
|
||||
{
|
||||
@ -1367,13 +1367,13 @@ static void ltdc_alpha_blend_test(void)
|
||||
top->layer->update(top->layer, LTDC_UPDATE_SIM|LTDC_SYNC_VBLANK);
|
||||
}
|
||||
|
||||
info("Fill bottom layer1 with color green\n");
|
||||
_info("Fill bottom layer1 with color green\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
ltdc_color(&bottom->vinfo, LTDC_GREEN));
|
||||
|
||||
info("Blend in green subjacent layer\n");
|
||||
_info("Blend in green subjacent layer\n");
|
||||
|
||||
for (i = 255; i >= 0; i--)
|
||||
{
|
||||
@ -1381,13 +1381,13 @@ static void ltdc_alpha_blend_test(void)
|
||||
top->layer->update(top->layer, LTDC_UPDATE_SIM|LTDC_SYNC_VBLANK);
|
||||
}
|
||||
|
||||
info("Fill bottom layer1 with color blue\n");
|
||||
_info("Fill bottom layer1 with color blue\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
ltdc_color(&bottom->vinfo, LTDC_BLUE));
|
||||
|
||||
info("Blend in blue subjacent layer\n");
|
||||
_info("Blend in blue subjacent layer\n");
|
||||
|
||||
for (i = 255; i >= 0; i--)
|
||||
{
|
||||
@ -1395,13 +1395,13 @@ static void ltdc_alpha_blend_test(void)
|
||||
top->layer->update(top->layer, LTDC_UPDATE_SIM|LTDC_SYNC_VBLANK);
|
||||
}
|
||||
|
||||
info("Fill bottom layer1 with color white\n");
|
||||
_info("Fill bottom layer1 with color white\n");
|
||||
|
||||
ltdc_drawcolor(&bottom->vinfo, bottom->pinfo.fbmem,
|
||||
bottom->vinfo.xres, bottom->vinfo.yres,
|
||||
ltdc_color(&bottom->vinfo, LTDC_WHITE));
|
||||
|
||||
info("Blend in white subjacent layer\n");
|
||||
_info("Blend in white subjacent layer\n");
|
||||
|
||||
for (i = 255; i >= 0; i--)
|
||||
{
|
||||
@ -1437,32 +1437,32 @@ static void ltdc_flip_test(void)
|
||||
|
||||
/* Flip with non blend */
|
||||
|
||||
info("Perform flip test without blending\n");
|
||||
_info("Perform flip test without blending\n");
|
||||
|
||||
info("active->pinfo.fbmem = %p\n", active->pinfo.fbmem);
|
||||
info("inactive->pinfo.fbmem = %p\n", inactive->pinfo.fbmem);
|
||||
_info("active->pinfo.fbmem = %p\n", active->pinfo.fbmem);
|
||||
_info("inactive->pinfo.fbmem = %p\n", inactive->pinfo.fbmem);
|
||||
|
||||
info("Ensure that both layer opaque\n");
|
||||
_info("Ensure that both layer opaque\n");
|
||||
active->layer->setalpha(active->layer, 0xff);
|
||||
inactive->layer->setalpha(inactive->layer, 0xff);
|
||||
active->layer->setblendmode(active->layer, LTDC_BLEND_NONE);
|
||||
inactive->layer->setblendmode(inactive->layer, LTDC_BLEND_NONE);
|
||||
|
||||
info("Set the active layer to fullscreen black\n");
|
||||
_info("Set the active layer to fullscreen black\n");
|
||||
ltdc_drawcolor(&active->vinfo, active->pinfo.fbmem,
|
||||
active->vinfo.xres, active->vinfo.yres,
|
||||
ltdc_color(&active->vinfo, LTDC_BLACK));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Set invisible layer to fullscreen blue\n");
|
||||
_info("Set invisible layer to fullscreen blue\n");
|
||||
ltdc_drawcolor(&inactive->vinfo, inactive->pinfo.fbmem,
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_BLUE));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the blue fullscreen\n");
|
||||
_info("Flip layer to see the blue fullscreen\n");
|
||||
inactive->layer->update(inactive->layer,
|
||||
LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -1470,41 +1470,41 @@ static void ltdc_flip_test(void)
|
||||
|
||||
/* Active layer is now inactive */
|
||||
|
||||
info("Set invisible layer to fullscreen green\n");
|
||||
_info("Set invisible layer to fullscreen green\n");
|
||||
ltdc_drawcolor(&active->vinfo, active->pinfo.fbmem,
|
||||
active->vinfo.xres, active->vinfo.yres,
|
||||
ltdc_color(&active->vinfo, LTDC_GREEN));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the green fullscreen\n");
|
||||
_info("Flip layer to see the green fullscreen\n");
|
||||
inactive->layer->update(inactive->layer,
|
||||
LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Set invisible layer to fullscreen red\n");
|
||||
_info("Set invisible layer to fullscreen red\n");
|
||||
ltdc_drawcolor(&inactive->vinfo, inactive->pinfo.fbmem,
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_RED));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the red fullscreen\n");
|
||||
_info("Flip layer to see the red fullscreen\n");
|
||||
inactive->layer->update(inactive->layer, LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
/* Flip with alpha blend */
|
||||
|
||||
info("Perform flip test with alpha blending\n");
|
||||
_info("Perform flip test with alpha blending\n");
|
||||
|
||||
/* Set the bottom layer to the current active layer */
|
||||
|
||||
active = ltdc_get_surface(LTDC_LAYER_BOTTOM);
|
||||
inactive = ltdc_get_surface(LTDC_LAYER_TOP);
|
||||
|
||||
info("Ensure that both layer fullscreen black\n");
|
||||
_info("Ensure that both layer fullscreen black\n");
|
||||
ltdc_drawcolor(&active->vinfo, active->pinfo.fbmem,
|
||||
active->vinfo.xres, active->vinfo.yres,
|
||||
ltdc_color(&active->vinfo, LTDC_BLACK));
|
||||
@ -1512,15 +1512,15 @@ static void ltdc_flip_test(void)
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_BLACK));
|
||||
|
||||
info("Ensure that both layer semitransparent\n");
|
||||
_info("Ensure that both layer semitransparent\n");
|
||||
active->layer->setalpha(active->layer, 0x7f);
|
||||
inactive->layer->setalpha(inactive->layer, 0x7f);
|
||||
active->layer->setblendmode(active->layer, LTDC_BLEND_ALPHA);
|
||||
inactive->layer->setblendmode(inactive->layer, LTDC_BLEND_ALPHA);
|
||||
|
||||
info("Enter in the flip mode sequence\n");
|
||||
info("Set the bottom layer to the active layer\n");
|
||||
info("Also update both layer simultaneous\n");
|
||||
_info("Enter in the flip mode sequence\n");
|
||||
_info("Set the bottom layer to the active layer\n");
|
||||
_info("Also update both layer simultaneous\n");
|
||||
active->layer->update(active->layer,LTDC_UPDATE_ACTIVATE|
|
||||
LTDC_UPDATE_SIM|
|
||||
LTDC_UPDATE_FLIP|
|
||||
@ -1528,28 +1528,28 @@ static void ltdc_flip_test(void)
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Set invisible layer to fullscreen blue\n");
|
||||
_info("Set invisible layer to fullscreen blue\n");
|
||||
ltdc_drawcolor(&inactive->vinfo, inactive->pinfo.fbmem,
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_BLUE));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the blue fullscreen\n");
|
||||
_info("Flip layer to see the blue fullscreen\n");
|
||||
inactive->layer->update(active->layer, LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
/* Active layer is top now */
|
||||
|
||||
info("Set invisible layer to fullscreen green\n");
|
||||
_info("Set invisible layer to fullscreen green\n");
|
||||
ltdc_drawcolor(&active->vinfo, active->pinfo.fbmem,
|
||||
active->vinfo.xres, active->vinfo.yres,
|
||||
ltdc_color(&active->vinfo, LTDC_GREEN));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the green fullscreen\n");
|
||||
_info("Flip layer to see the green fullscreen\n");
|
||||
inactive->layer->update(active->layer,
|
||||
LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -1557,32 +1557,32 @@ static void ltdc_flip_test(void)
|
||||
|
||||
/* Active layer is bottom now */
|
||||
|
||||
info("Set invisible layer to fullscreen red\n");
|
||||
_info("Set invisible layer to fullscreen red\n");
|
||||
ltdc_drawcolor(&inactive->vinfo, inactive->pinfo.fbmem,
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_RED));
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the red fullscreen\n");
|
||||
_info("Flip layer to see the red fullscreen\n");
|
||||
inactive->layer->update(active->layer, LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
/* Active layer is top now */
|
||||
|
||||
info("Set bottom layer back to fullscreen black\n");
|
||||
_info("Set bottom layer back to fullscreen black\n");
|
||||
ltdc_drawcolor(&active->vinfo, active->pinfo.fbmem,
|
||||
active->vinfo.xres, active->vinfo.yres,
|
||||
ltdc_color(&active->vinfo, LTDC_BLACK));
|
||||
|
||||
info("Set bottom layer to alpha %d and disable blend mode\n", 0xff);
|
||||
_info("Set bottom layer to alpha %d and disable blend mode\n", 0xff);
|
||||
inactive->layer->setalpha(active->layer, 0xff);
|
||||
inactive->layer->setblendmode(active->layer, LTDC_BLEND_NONE);
|
||||
|
||||
usleep(1000000);
|
||||
|
||||
info("Flip layer to see the black fullscreen\n");
|
||||
_info("Flip layer to see the black fullscreen\n");
|
||||
inactive->layer->update(active->layer,
|
||||
LTDC_UPDATE_FLIP|LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -1596,16 +1596,16 @@ static void ltdc_flip_test(void)
|
||||
|
||||
/* Restore settings */
|
||||
|
||||
info("Finally set the top layer back to fullscreen black\n");
|
||||
_info("Finally set the top layer back to fullscreen black\n");
|
||||
ltdc_drawcolor(&inactive->vinfo, inactive->pinfo.fbmem,
|
||||
inactive->vinfo.xres, inactive->vinfo.yres,
|
||||
ltdc_color(&inactive->vinfo, LTDC_BLACK));
|
||||
|
||||
info("Set top layer to alpha %d and disable blend mode\n", 0xff);
|
||||
_info("Set top layer to alpha %d and disable blend mode\n", 0xff);
|
||||
inactive->layer->setalpha(inactive->layer, 0xff);
|
||||
inactive->layer->setblendmode(inactive->layer, LTDC_BLEND_NONE);
|
||||
|
||||
info("Flip to the top layer\n");
|
||||
_info("Flip to the top layer\n");
|
||||
inactive->layer->update(inactive->layer,
|
||||
LTDC_UPDATE_ACTIVATE|LTDC_SYNC_VBLANK);
|
||||
|
||||
@ -1728,7 +1728,7 @@ FAR struct fb_cmap_s * ltdc_createcmap(uint16_t ncolors)
|
||||
|
||||
if (!clut)
|
||||
{
|
||||
_err("ERROR: malloc() failed\n");
|
||||
_err("ERROR: malloc() failed\n");
|
||||
free(cmap);
|
||||
return NULL;;
|
||||
}
|
||||
@ -1805,7 +1805,7 @@ uint32_t ltdc_color(FAR struct fb_videoinfo_s *vinfo, uint8_t color)
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
_err("ERROR: Unsupported pixel format %d\n", vinfo->fmt);
|
||||
_err("ERROR: Unsupported pixel format %d\n", vinfo->fmt);
|
||||
value = 0;
|
||||
break;
|
||||
}
|
||||
@ -1828,8 +1828,8 @@ void ltdc_simple_draw(FAR struct fb_videoinfo_s *vinfo,
|
||||
uint16_t xres = vinfo->xres;
|
||||
uint16_t yres = vinfo->yres;
|
||||
|
||||
info("draw a red and green rectangle in the upper half\n");
|
||||
info("draw a white and blue rectangle in the lower half\n");
|
||||
_info("draw a red and green rectangle in the upper half\n");
|
||||
_info("draw a white and blue rectangle in the lower half\n");
|
||||
|
||||
#if defined(CONFIG_STM32_LTDC_L1_L8) || defined(CONFIG_STM32_LTDC_L2_L8)
|
||||
if (vinfo->fmt == FB_FMT_RGB8)
|
||||
@ -1982,7 +1982,7 @@ void ltdc_drawcolor(FAR struct fb_videoinfo_s *vinfo, void *buffer,
|
||||
|
||||
/* draw a blue rectangle */
|
||||
|
||||
info("draw a full screen rectangle with color %08x\n", color);
|
||||
_info("draw a full screen rectangle with color %08x\n", color);
|
||||
|
||||
#if defined(CONFIG_STM32_LTDC_L1_L8) || defined(CONFIG_STM32_LTDC_L2_L8)
|
||||
if (vinfo->fmt == FB_FMT_RGB8)
|
||||
@ -2059,13 +2059,13 @@ struct surface * ltdc_get_surface(uint32_t mode)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
_err("ERROR: getlid() failed\n");
|
||||
_err("ERROR: getlid() failed\n");
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
if (lid < 0 || lid > 1)
|
||||
{
|
||||
_err("ERROR: invalid layer id %d\n", lid);
|
||||
_err("ERROR: invalid layer id %d\n", lid);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
@ -2086,7 +2086,7 @@ int ltdc_main(int argc, char *argv[])
|
||||
|
||||
if (up_fbinitialize(0) < 0)
|
||||
{
|
||||
_err("ERROR: up_fbinitialize() failed\n");
|
||||
_err("ERROR: up_fbinitialize() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -2094,23 +2094,23 @@ int ltdc_main(int argc, char *argv[])
|
||||
|
||||
if (!fbtable)
|
||||
{
|
||||
_err("ERROR: up_fbgetvplane() failed\n");
|
||||
_err("ERROR: up_fbgetvplane() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (fbtable->getvideoinfo(fbtable, &vinfo)<0)
|
||||
{
|
||||
_err("ERROR: getvideoinfo failed\n");
|
||||
_err("ERROR: getvideoinfo failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (fbtable->getplaneinfo(fbtable, 0, &pinfo)<0)
|
||||
{
|
||||
_err("ERROR: getplaneinfo failed\n");
|
||||
_err("ERROR: getplaneinfo failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
info("fb is configured with: xres = %d, yres = %d, \
|
||||
_info("fb is configured with: xres = %d, yres = %d, \
|
||||
fb start address = %p, fb size = %d, fmt = %d, bpp = %d\n",
|
||||
vinfo.xres, vinfo.yres, pinfo.fbmem, pinfo.fblen,
|
||||
vinfo.fmt, pinfo.bpp);
|
||||
@ -2122,7 +2122,7 @@ int ltdc_main(int argc, char *argv[])
|
||||
{
|
||||
if (fbtable->putcmap(fbtable, &g_cmap) != OK)
|
||||
{
|
||||
_err("ERROR: putcmap() failed\n");
|
||||
_err("ERROR: putcmap() failed\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -102,16 +102,16 @@
|
||||
|
||||
#ifdef CONFIG_CPP_HAVE_VARARGS
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message(format, ...) info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# define message(format, ...) _info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# else
|
||||
# define message(format, ...) printf(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
|
||||
# endif
|
||||
#else
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message info
|
||||
# define errmsg _err
|
||||
# define message _info
|
||||
# define errmsg _err
|
||||
# else
|
||||
# define message printf
|
||||
# define errmsg printf
|
||||
|
@ -34,7 +34,7 @@
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/.config # Current configuration
|
||||
-include $(TOPDIR)/Make.defs # Basic make info
|
||||
-include $(TOPDIR)/Make.defs # Basic make _info
|
||||
|
||||
BIN = pthread
|
||||
|
||||
|
@ -98,7 +98,7 @@ int pca9635_main(int argc, char *argv[])
|
||||
ret = ioctl(fd, PWMIOC_SETLED_BRIGHTNESS, (unsigned long)&ledbright);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n", errno);
|
||||
_err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n", errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,16 +109,16 @@
|
||||
|
||||
#ifdef CONFIG_CPP_HAVE_VARARGS
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message(format, ...) info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# define message(format, ...) _info(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# else
|
||||
# define message(format, ...) printf(format, ##__VA_ARGS__)
|
||||
# define errmsg(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
|
||||
# endif
|
||||
#else
|
||||
# ifdef CONFIG_DEBUG_FEATURES
|
||||
# define message info
|
||||
# define errmsg _err
|
||||
# define message _info
|
||||
# define errmsg _err
|
||||
# else
|
||||
# define message printf
|
||||
# define errmsg printf
|
||||
|
@ -155,14 +155,14 @@ static int chat_tokenise(FAR struct chat* priv,
|
||||
|
||||
tok_pos = 0;
|
||||
|
||||
info("%s (%d)\n", tok->string, tok->no_termin);
|
||||
_info("%s (%d)\n", tok->string, tok->no_termin);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Tokenizer start */
|
||||
|
||||
DEBUGASSERT(script != NULL);
|
||||
info("%s\n", script);
|
||||
_info("%s\n", script);
|
||||
|
||||
while (!ret && *cursor != '\0')
|
||||
{
|
||||
@ -279,7 +279,7 @@ static int chat_tokenise(FAR struct chat* priv,
|
||||
ret = tok_on_delimiter();
|
||||
}
|
||||
|
||||
info("result %d\n", ret);
|
||||
_info("result %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ static int chat_internalise(FAR struct chat* priv,
|
||||
while (tok && !ret)
|
||||
{
|
||||
DEBUGASSERT(tok->string);
|
||||
info("(%c) %s\n", rhs ? 'R' : 'L', tok->string);
|
||||
_info("(%c) %s\n", rhs ? 'R' : 'L', tok->string);
|
||||
|
||||
if (!rhs)
|
||||
{
|
||||
@ -406,7 +406,7 @@ static int chat_internalise(FAR struct chat* priv,
|
||||
ret = -ENODATA;
|
||||
}
|
||||
|
||||
info("result %d, rhs %d\n", ret, rhs);
|
||||
_info("result %d, rhs %d\n", ret, rhs);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -426,7 +426,7 @@ static void chat_tokens_free(FAR struct chat_token* first_tok)
|
||||
first_tok = next_tok;
|
||||
}
|
||||
|
||||
info("tokens freed\n");
|
||||
_info("tokens freed\n");
|
||||
}
|
||||
|
||||
/* Main parsing function. */
|
||||
@ -463,14 +463,14 @@ static int chat_readb(FAR struct chat* priv, FAR char* c, int timeout_ms)
|
||||
ret = poll(&fds, 1, timeout_ms);
|
||||
if (ret <= 0)
|
||||
{
|
||||
info("poll timed out\n");
|
||||
_info("poll timed out\n");
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
ret = read(priv->ctl.fd, c, 1);
|
||||
if (ret != 1)
|
||||
{
|
||||
info("read failed\n");
|
||||
_info("read failed\n");
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
@ -479,7 +479,7 @@ static int chat_readb(FAR struct chat* priv, FAR char* c, int timeout_ms)
|
||||
fputc(*c, stderr);
|
||||
}
|
||||
|
||||
info("read \'%c\' (0x%02X)\n", *c, *c);
|
||||
_info("read \'%c\' (0x%02X)\n", *c, *c);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -487,9 +487,9 @@ static void chat_flush(FAR struct chat* priv)
|
||||
{
|
||||
char c;
|
||||
|
||||
info("starting\n");
|
||||
_info("starting\n");
|
||||
while (chat_readb(priv, (FAR char*) &c, 0) == 0);
|
||||
info("done\n");
|
||||
_info("done\n");
|
||||
}
|
||||
|
||||
static int chat_expect(FAR struct chat* priv, FAR const char* s)
|
||||
@ -541,7 +541,7 @@ static int chat_expect(FAR struct chat* priv, FAR const char* s)
|
||||
}
|
||||
}
|
||||
|
||||
info("result %d\n", ret);
|
||||
_info("result %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -553,7 +553,7 @@ static int chat_send(FAR struct chat* priv, FAR const char* s)
|
||||
/* 'write' returns the number of successfully written characters */
|
||||
|
||||
ret = write(priv->ctl.fd, s, len);
|
||||
info("wrote %d out of %d bytes of \'%s\'\n", ret, len, s);
|
||||
_info("wrote %d out of %d bytes of \'%s\'\n", ret, len, s);
|
||||
if (ret > 0)
|
||||
{
|
||||
/* Just SUCCESS */
|
||||
@ -570,7 +570,7 @@ static int chat_line_run(FAR struct chat* priv,
|
||||
int ret = 0;
|
||||
int numarg;
|
||||
|
||||
info("type %d, rhs %s\n", line->type, line->rhs);
|
||||
_info("type %d, rhs %s\n", line->type, line->rhs);
|
||||
|
||||
switch (line->type)
|
||||
{
|
||||
@ -617,11 +617,11 @@ static int chat_line_run(FAR struct chat* priv,
|
||||
numarg = atoi(line->rhs);
|
||||
if (numarg < 0)
|
||||
{
|
||||
info("invalid timeout string %s\n", line->rhs);
|
||||
_info("invalid timeout string %s\n", line->rhs);
|
||||
}
|
||||
else
|
||||
{
|
||||
info("timeout is %d s\n", numarg);
|
||||
_info("timeout is %d s\n", numarg);
|
||||
priv->ctl.timeout = numarg;
|
||||
}
|
||||
|
||||
@ -678,7 +678,7 @@ static int chat_script_run(FAR struct chat* priv)
|
||||
}
|
||||
}
|
||||
|
||||
info("Script result %d, exited on line %d\n", ret, line_num);
|
||||
_info("Script result %d, exited on line %d\n", ret, line_num);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ static ssize_t nsh_consolewrite(FAR struct nsh_vtbl_s *vtbl,
|
||||
ret = fwrite(buffer, 1, nbytes, pstate->cn_outstream);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: [%d] Failed to send buffer: %d\n",
|
||||
_err("ERROR: [%d] Failed to send buffer: %d\n",
|
||||
pstate->cn_outfd, errno);
|
||||
}
|
||||
return ret;
|
||||
|
@ -1293,7 +1293,7 @@ int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
memset(buffer, 0, sectsize * nsectors);
|
||||
#endif
|
||||
info("RAMDISK at %p\n", buffer);
|
||||
_info("RAMDISK at %p\n", buffer);
|
||||
|
||||
/* Then register the ramdisk */
|
||||
|
||||
|
@ -363,7 +363,7 @@ static pthread_addr_t nsh_child(pthread_addr_t arg)
|
||||
struct cmdarg_s *carg = (struct cmdarg_s *)arg;
|
||||
int ret;
|
||||
|
||||
info("BG %s\n", carg->argv[0]);
|
||||
_info("BG %s\n", carg->argv[0]);
|
||||
|
||||
/* Execute the specified command on the child thread */
|
||||
|
||||
@ -371,7 +371,7 @@ static pthread_addr_t nsh_child(pthread_addr_t arg)
|
||||
|
||||
/* Released the cloned arguments */
|
||||
|
||||
info("BG %s complete\n", carg->argv[0]);
|
||||
_info("BG %s complete\n", carg->argv[0]);
|
||||
nsh_releaseargs(carg);
|
||||
return (pthread_addr_t)((uintptr_t)ret);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ static int nsh_telnetmain(int argc, char *argv[])
|
||||
DEBUGASSERT(pstate != NULL);
|
||||
vtbl = &pstate->cn_vtbl;
|
||||
|
||||
info("Session [%d] Started\n", getpid());
|
||||
_info("Session [%d] Started\n", getpid());
|
||||
|
||||
#ifdef CONFIG_NSH_TELNET_LOGIN
|
||||
/* Login User and Password Check */
|
||||
@ -201,11 +201,11 @@ int nsh_telnetstart(void)
|
||||
|
||||
/* Start the telnet daemon */
|
||||
|
||||
info("Starting the Telnet daemon\n");
|
||||
_info("Starting the Telnet daemon\n");
|
||||
ret = telnetd_start(&config);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: Failed to tart the Telnet daemon: %d\n", ret);
|
||||
_err("ERROR: Failed to tart the Telnet daemon: %d\n", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -55,7 +55,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -55,7 +55,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxinfo info
|
||||
# define cxxinfo _info
|
||||
#else
|
||||
# define cxxinfo(x...)
|
||||
#endif
|
||||
|
@ -426,7 +426,7 @@ ssize_t i2ctool_write(FAR struct i2ctool_s *i2ctool, FAR const void *buffer, siz
|
||||
ret = fwrite(buffer, 1, nbytes, OUTSTREAM(i2ctool));
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: [%d] Failed to send buffer: %d\n", OUTFD(i2ctool), errno);
|
||||
_err("ERROR: [%d] Failed to send buffer: %d\n", OUTFD(i2ctool), errno);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -59,12 +59,12 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_MODEM_U_BLOX_DEBUG
|
||||
# define m_err _err
|
||||
# define m_warn llwarn
|
||||
# define m_info info
|
||||
# define m_llerr llerr
|
||||
# define m_llwarn llwarn
|
||||
# define m_llinfo llinfo
|
||||
# define m_err _err
|
||||
# define m_warn _llwarn
|
||||
# define m_info _info
|
||||
# define m_llerr _llerr
|
||||
# define m_llwarn _llwarn
|
||||
# define m_llinfo _llinfo
|
||||
#else
|
||||
# define m_err(x...)
|
||||
# define m_warn(x...)
|
||||
|
@ -839,7 +839,7 @@ static int zmr_filedata(FAR struct zm_state_s *pzm)
|
||||
* Timed out waiting:
|
||||
*
|
||||
* 1) In state ZMR_INITWAIT - Received ZSINIT, waiting for data, or
|
||||
* 2) In state XMRS_FILENAME - Received ZFILE, waiting for file info
|
||||
* 2) In state XMRS_FILENAME - Received ZFILE, waiting for file _info
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user