Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/fbset.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/fbset.c
r3232 r3621 165 165 } g_cmdoptions[] = { 166 166 /*"12345678" + NUL */ 167 //TODO: convert to index_in_strings() 167 168 { "fb" , 1, CMD_FB }, 168 169 { "db" , 1, CMD_DB }, … … 249 250 continue; 250 251 s = p + strlen(mode); 251 //bb_ info_msg("CHECK[%s][%s][%d]", mode, p-1, *s);252 //bb_error_msg("CHECK[%s][%s][%d]", mode, p-1, *s); 252 253 /* exact match? */ 253 254 if (((!*s || isspace(*s)) && '"' != s[-1]) /* end-of-token */ 254 255 || ('"' == *s && '"' == p[-1]) /* ends with " but starts with " too! */ 255 256 ) { 256 //bb_ info_msg("FOUND[%s][%s][%s][%d]", token[1], p, mode, isspace(*s));257 //bb_error_msg("FOUND[%s][%s][%s][%d]", token[1], p, mode, isspace(*s)); 257 258 break; 258 259 } … … 265 266 int i; 266 267 267 //bb_ info_msg("???[%s][%s]", token[0], token[1]);268 //bb_error_msg("???[%s][%s]", token[0], token[1]); 268 269 if (strcmp(token[0], "endmode") == 0) { 269 //bb_ info_msg("OK[%s]", mode);270 //bb_error_msg("OK[%s]", mode); 270 271 return 1; 271 272 } … … 295 296 base->bits_per_pixel = base_bits_per_pixel; 296 297 } 297 //bb_ info_msg("GEO[%s]", p);298 //bb_error_msg("GEO[%s]", p); 298 299 break; 299 300 case 1: … … 322 323 base->vsync_len = base_vsync_len; 323 324 } 324 //bb_ info_msg("TIM[%s]", p);325 //bb_error_msg("TIM[%s]", p); 325 326 break; 326 327 case 2: … … 328 329 static const uint32_t syncs[] = {FB_VMODE_INTERLACED, FB_VMODE_DOUBLE}; 329 330 ss(&base->vmode, syncs[i-2], p, "false"); 330 //bb_ info_msg("VMODE[%s]", p);331 //bb_error_msg("VMODE[%s]", p); 331 332 break; 332 333 } … … 336 337 static const uint32_t syncs[] = {FB_SYNC_VERT_HIGH_ACT, FB_SYNC_HOR_HIGH_ACT, FB_SYNC_COMP_HIGH_ACT}; 337 338 ss(&base->sync, syncs[i-4], p, "low"); 338 //bb_ info_msg("SYNC[%s]", p);339 //bb_error_msg("SYNC[%s]", p); 339 340 break; 340 341 } 341 342 case 7: 342 343 ss(&base->sync, FB_SYNC_EXT, p, "false"); 343 //bb_ info_msg("EXTSYNC[%s]", p);344 //bb_error_msg("EXTSYNC[%s]", p); 344 345 break; 345 346 case 8: { … … 350 351 351 352 sscanf(p, "%d/%d,%d/%d,%d/%d,%d/%d", 352 &red_ offset, &red_length,353 &green_ offset, &green_length,354 &blue_ offset, &blue_length,355 &transp_ offset, &transp_length);353 &red_length, &red_offset, 354 &green_length, &green_offset, 355 &blue_length, &blue_offset, 356 &transp_length, &transp_offset); 356 357 base->red.offset = red_offset; 357 358 base->red.length = red_length; … … 417 418 418 419 const char *fbdev = DEFAULTFBDEV; 419 const char *modefile = DEFAULTFBMODE;420 IF_FEATURE_FBSET_READMODE(const char *modefile = DEFAULTFBMODE;) 420 421 char *thisarg; 421 422 char *mode = mode; /* for compiler */ … … 445 446 break; 446 447 case CMD_DB: 447 modefile = argv[1];448 IF_FEATURE_FBSET_READMODE(modefile = argv[1];) 448 449 break; 449 450 case CMD_ALL:
Note:
See TracChangeset
for help on using the changeset viewer.