Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/util-linux/fbset.c

    r3232 r3621  
    165165} g_cmdoptions[] = {
    166166    /*"12345678" + NUL */
     167//TODO: convert to index_in_strings()
    167168    { "fb"      , 1, CMD_FB       },
    168169    { "db"      , 1, CMD_DB       },
     
    249250            continue;
    250251        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);
    252253        /* exact match? */
    253254        if (((!*s || isspace(*s)) && '"' != s[-1]) /* end-of-token */
    254255         || ('"' == *s && '"' == p[-1]) /* ends with " but starts with " too! */
    255256        ) {
    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));
    257258            break;
    258259        }
     
    265266        int i;
    266267
    267 //bb_info_msg("???[%s][%s]", token[0], token[1]);
     268//bb_error_msg("???[%s][%s]", token[0], token[1]);
    268269        if (strcmp(token[0], "endmode") == 0) {
    269 //bb_info_msg("OK[%s]", mode);
     270//bb_error_msg("OK[%s]", mode);
    270271            return 1;
    271272        }
     
    295296                base->bits_per_pixel = base_bits_per_pixel;
    296297            }
    297 //bb_info_msg("GEO[%s]", p);
     298//bb_error_msg("GEO[%s]", p);
    298299            break;
    299300        case 1:
     
    322323                base->vsync_len = base_vsync_len;
    323324            }
    324 //bb_info_msg("TIM[%s]", p);
     325//bb_error_msg("TIM[%s]", p);
    325326            break;
    326327        case 2:
     
    328329            static const uint32_t syncs[] = {FB_VMODE_INTERLACED, FB_VMODE_DOUBLE};
    329330            ss(&base->vmode, syncs[i-2], p, "false");
    330 //bb_info_msg("VMODE[%s]", p);
     331//bb_error_msg("VMODE[%s]", p);
    331332            break;
    332333        }
     
    336337            static const uint32_t syncs[] = {FB_SYNC_VERT_HIGH_ACT, FB_SYNC_HOR_HIGH_ACT, FB_SYNC_COMP_HIGH_ACT};
    337338            ss(&base->sync, syncs[i-4], p, "low");
    338 //bb_info_msg("SYNC[%s]", p);
     339//bb_error_msg("SYNC[%s]", p);
    339340            break;
    340341        }
    341342        case 7:
    342343            ss(&base->sync, FB_SYNC_EXT, p, "false");
    343 //bb_info_msg("EXTSYNC[%s]", p);
     344//bb_error_msg("EXTSYNC[%s]", p);
    344345            break;
    345346        case 8: {
     
    350351
    351352            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);
    356357            base->red.offset = red_offset;
    357358            base->red.length = red_length;
     
    417418
    418419    const char *fbdev = DEFAULTFBDEV;
    419     const char *modefile = DEFAULTFBMODE;
     420    IF_FEATURE_FBSET_READMODE(const char *modefile = DEFAULTFBMODE;)
    420421    char *thisarg;
    421422    char *mode = mode; /* for compiler */
     
    445446                break;
    446447            case CMD_DB:
    447                 modefile = argv[1];
     448                IF_FEATURE_FBSET_READMODE(modefile = argv[1];)
    448449                break;
    449450            case CMD_ALL:
Note: See TracChangeset for help on using the changeset viewer.