Ignore:
Timestamp:
2018-02-28T17:52:03Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/printf/printf.c

    rdf6ded8 r1b20da0  
    6060
    6161/** Print a formatted data with lib printf.
    62  * 
     62 *
    6363 * Currently available format flags are:
    6464 * '%d' - integer.
    6565 * '%u' - unsigned integer.
    6666 * '%s' - null-terminated string.
    67  ***** 
     67 *****
    6868 * @param ch  formatted flag.
    6969 * @param arg string with data to print.
     
    8888
    8989/** Process a control character.
    90  * 
     90 *
    9191 * Currently available characters are:
    9292 * '\n' - new line.
    93  ***** 
     93 *****
    9494 * @param ch  Control character.
    9595 */
     
    107107
    108108
    109 /** Prints formatted data. 
     109/** Prints formatted data.
    110110 *
    111111 * Accepted format flags:
     
    143143
    144144                case '\\':
    145                         if (esc_flag) 
     145                        if (esc_flag)
    146146                                goto emit;
    147147                        esc_flag = true;
     
    149149
    150150                case '%':
    151                         if (esc_flag) 
     151                        if (esc_flag)
    152152                                goto emit;
    153153                        ch = str_decode(fmt, &pos, fmt_sz);
    154                         if (!ch) { 
     154                        if (!ch) {
    155155                                putchar('%');
    156156                                break;
     
    170170                                break;
    171171                        }
    172                         putchar(ch);   
     172                        putchar(ch);
    173173                        break;
    174174
     
    177177                        esc_flag = false;
    178178                }
    179         }       
     179        }
    180180
    181181        return CMD_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.