aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-03-30 16:04:37 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-03-30 16:04:37 +0200
commit76b680c7a8d5a99e46ab8d9cad49aed0cfc440a7 (patch)
tree00713ce6c4e20b87ecea9777fcaa5fe5c898dd8c /util-linux/fbset.c
parent610c4c385b38280c7bde7a48d95ec019cbfe1ab4 (diff)
downloadbusybox-w32-76b680c7a8d5a99e46ab8d9cad49aed0cfc440a7.tar.gz
busybox-w32-76b680c7a8d5a99e46ab8d9cad49aed0cfc440a7.tar.bz2
busybox-w32-76b680c7a8d5a99e46ab8d9cad49aed0cfc440a7.zip
Use bb_error_msg instead of bb_info_msg in all commented-out debug printouts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index ac0082f70..09e96b763 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -248,12 +248,12 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
248 if (!p) 248 if (!p)
249 continue; 249 continue;
250 s = p + strlen(mode); 250 s = p + strlen(mode);
251 //bb_info_msg("CHECK[%s][%s][%d]", mode, p-1, *s); 251 //bb_error_msg("CHECK[%s][%s][%d]", mode, p-1, *s);
252 /* exact match? */ 252 /* exact match? */
253 if (((!*s || isspace(*s)) && '"' != s[-1]) /* end-of-token */ 253 if (((!*s || isspace(*s)) && '"' != s[-1]) /* end-of-token */
254 || ('"' == *s && '"' == p[-1]) /* ends with " but starts with " too! */ 254 || ('"' == *s && '"' == p[-1]) /* ends with " but starts with " too! */
255 ) { 255 ) {
256 //bb_info_msg("FOUND[%s][%s][%s][%d]", token[1], p, mode, isspace(*s)); 256 //bb_error_msg("FOUND[%s][%s][%s][%d]", token[1], p, mode, isspace(*s));
257 break; 257 break;
258 } 258 }
259 } 259 }
@@ -264,9 +264,9 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
264 while (config_read(parser, token, 2, 1, "# \t", PARSE_NORMAL)) { 264 while (config_read(parser, token, 2, 1, "# \t", PARSE_NORMAL)) {
265 int i; 265 int i;
266 266
267//bb_info_msg("???[%s][%s]", token[0], token[1]); 267//bb_error_msg("???[%s][%s]", token[0], token[1]);
268 if (strcmp(token[0], "endmode") == 0) { 268 if (strcmp(token[0], "endmode") == 0) {
269//bb_info_msg("OK[%s]", mode); 269//bb_error_msg("OK[%s]", mode);
270 return 1; 270 return 1;
271 } 271 }
272 p = token[1]; 272 p = token[1];
@@ -294,7 +294,7 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
294 base->yres_virtual = base_yres_virtual; 294 base->yres_virtual = base_yres_virtual;
295 base->bits_per_pixel = base_bits_per_pixel; 295 base->bits_per_pixel = base_bits_per_pixel;
296 } 296 }
297//bb_info_msg("GEO[%s]", p); 297//bb_error_msg("GEO[%s]", p);
298 break; 298 break;
299 case 1: 299 case 1:
300 if (sizeof(int) == sizeof(base->xres)) { 300 if (sizeof(int) == sizeof(base->xres)) {
@@ -321,13 +321,13 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
321 base->hsync_len = base_hsync_len; 321 base->hsync_len = base_hsync_len;
322 base->vsync_len = base_vsync_len; 322 base->vsync_len = base_vsync_len;
323 } 323 }
324//bb_info_msg("TIM[%s]", p); 324//bb_error_msg("TIM[%s]", p);
325 break; 325 break;
326 case 2: 326 case 2:
327 case 3: { 327 case 3: {
328 static const uint32_t syncs[] = {FB_VMODE_INTERLACED, FB_VMODE_DOUBLE}; 328 static const uint32_t syncs[] = {FB_VMODE_INTERLACED, FB_VMODE_DOUBLE};
329 ss(&base->vmode, syncs[i-2], p, "false"); 329 ss(&base->vmode, syncs[i-2], p, "false");
330//bb_info_msg("VMODE[%s]", p); 330//bb_error_msg("VMODE[%s]", p);
331 break; 331 break;
332 } 332 }
333 case 4: 333 case 4:
@@ -335,12 +335,12 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
335 case 6: { 335 case 6: {
336 static const uint32_t syncs[] = {FB_SYNC_VERT_HIGH_ACT, FB_SYNC_HOR_HIGH_ACT, FB_SYNC_COMP_HIGH_ACT}; 336 static const uint32_t syncs[] = {FB_SYNC_VERT_HIGH_ACT, FB_SYNC_HOR_HIGH_ACT, FB_SYNC_COMP_HIGH_ACT};
337 ss(&base->sync, syncs[i-4], p, "low"); 337 ss(&base->sync, syncs[i-4], p, "low");
338//bb_info_msg("SYNC[%s]", p); 338//bb_error_msg("SYNC[%s]", p);
339 break; 339 break;
340 } 340 }
341 case 7: 341 case 7:
342 ss(&base->sync, FB_SYNC_EXT, p, "false"); 342 ss(&base->sync, FB_SYNC_EXT, p, "false");
343//bb_info_msg("EXTSYNC[%s]", p); 343//bb_error_msg("EXTSYNC[%s]", p);
344 break; 344 break;
345 case 8: { 345 case 8: {
346 int red_offset, red_length; 346 int red_offset, red_length;