Ignore:
Timestamp:
2007-01-17T13:03:08Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df4ed85
Parents:
c738d65
Message:

Rather big indentation and formatting changes.
More inteligent long line wrapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/printf_core.c

    rc738d65 rd7baee6  
    268268        if (flags & __PRINTF_FLAG_PREFIX) {
    269269                switch(base) {
    270                         case 2: /* Binary formating is not standard, but usefull */
    271                                 size += 2;
    272                                 break;
    273                         case 8:
    274                                 size++;
    275                                 break;
    276                         case 16:
    277                                 size += 2;
    278                                 break;
     270                case 2: /* Binary formating is not standard, but usefull */
     271                        size += 2;
     272                        break;
     273                case 8:
     274                        size++;
     275                        break;
     276                case 16:
     277                        size += 2;
     278                        break;
    279279                }
    280280        }
     
    329329        if (flags & __PRINTF_FLAG_PREFIX) {
    330330                switch(base) {
    331                         case 2: /* Binary formating is not standard, but usefull */
    332                                 if (printf_putchar('0', ps) == 1)
     331                case 2: /* Binary formating is not standard, but usefull */
     332                        if (printf_putchar('0', ps) == 1)
     333                                counter++;
     334                        if (flags & __PRINTF_FLAG_BIGCHARS) {
     335                                if (printf_putchar('B', ps) == 1)
    333336                                        counter++;
    334                                 if (flags & __PRINTF_FLAG_BIGCHARS) {
    335                                         if (printf_putchar('B', ps) == 1)
    336                                                 counter++;
    337                                 } else {
    338                                         if (printf_putchar('b', ps) == 1)
    339                                                 counter++;
    340                                 }
    341                                 break;
    342                         case 8:
    343                                 if (printf_putchar('o', ps) == 1)
     337                        } else {
     338                                if (printf_putchar('b', ps) == 1)
    344339                                        counter++;
    345                                 break;
    346                         case 16:
    347                                 if (printf_putchar('0', ps) == 1)
     340                        }
     341                        break;
     342                case 8:
     343                        if (printf_putchar('o', ps) == 1)
     344                                counter++;
     345                        break;
     346                case 16:
     347                        if (printf_putchar('0', ps) == 1)
     348                                counter++;
     349                        if (flags & __PRINTF_FLAG_BIGCHARS) {
     350                                if (printf_putchar('X', ps) == 1)
    348351                                        counter++;
    349                                 if (flags & __PRINTF_FLAG_BIGCHARS) {
    350                                         if (printf_putchar('X', ps) == 1)
    351                                                 counter++;
    352                                 } else {
    353                                         if (printf_putchar('x', ps) == 1)
    354                                                 counter++;
    355                                 }
    356                                 break;
     352                        } else {
     353                                if (printf_putchar('x', ps) == 1)
     354                                        counter++;
     355                        }
     356                        break;
    357357                }
    358358        }
Note: See TracChangeset for help on using the changeset viewer.