Changeset 7f0837c in mainline for generic/src/debug/print.c


Ignore:
Timestamp:
2006-04-24T12:59:11Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd8af4b
Parents:
24f3874
Message:

Remove the outdated TODO file.
Improve doxygen comments here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/debug/print.c

    r24f3874 r7f0837c  
    8181}
    8282
    83 /** Print one string without appending '\n' to the end
    84  *
    85  * Dont use this function directly - printflock is not locked here
     83/** Print one string without appending '\n' to the end.
     84 *
     85 * Do not use this function directly - printflock is not locked here.
    8686 *
    8787 */
     
    9999}
    100100
    101 /** Print count characters from buffer to output
    102  *
     101/** Print count characters from buffer to output.
     102 *
     103 * @param buffer Address of the buffer with charaters to be printed.
     104 * @param count Number of characters to be printed.
     105 *
     106 * @return Number of characters printed.
    103107 */
    104108static int putnchars(const char *buffer, __native count)
     
    119123/** Print one formatted character
    120124 *
    121  * @param c character to print
     125 * @param c Character to print.
    122126 * @param width
    123127 * @param flags
    124  * @return number of printed characters or EOF
     128 * @return Number of printed characters or EOF.
    125129 */
    126130static int print_char(char c, int width, __u64 flags)
     
    350354}
    351355
    352 /** General formatted text print
    353  *
    354  * Print string formatted according to the fmt parameter
     356/** Print formatted string.
     357 *
     358 * Print string formatted according to the @fmt parameter
    355359 * and variadic arguments. Each formatting directive
    356360 * must have the following form:
     
    362366 * -    Align to left.
    363367 * +    Print positive sign just as negative.
    364  *   (space)    If printed number is positive and '+' flag is not set, print space in place of sign.
    365  * 0    Print 0 as padding instead of spaces. Zeroes are placed between sign and the rest of number.
     368 *   (space)    If the printed number is positive and '+' flag is not set, print space in place of sign.
     369 * 0    Print 0 as padding instead of spaces. Zeroes are placed between sign and the rest of the number.
    366370 *      This flag is ignored if '-' flag is specified.
    367371 *
     
    369373 * Specify minimal width of printed argument. If it is bigger, width is ignored.
    370374 * If width is specified with a '*' character instead of number, width is taken from parameter list.
    371  * Int parameter expected before parameter for processed conversion specification.
     375 * And integer parameter is expected before parameter for processed conversion specification.
    372376 * If this value is negative its absolute value is taken and the '-' flag is set.
    373377 *
     
    391395 * CONVERSIONS:
    392396 *
    393  * %    Print percentage character.
     397 * %    Print percentage character itself.
    394398 *
    395399 * c    Print single character.
     
    398402 *
    399403 * P, p Print value of a pointer. Void * value is expected and it is printed in hexadecimal notation with prefix
    400  * ( as with %#X or %#x for 32bit or %#X / %#x for 64bit long pointers).
     404 * (as with %#X or %#x for 32bit or %#X / %#x for 64bit long pointers).
    401405 *
    402406 * b    Print value as unsigned binary number. Prefix is not printed by default. (Nonstandard extension.)
     
    408412 * u    Print unsigned decimal number.
    409413 *
    410  * X, x Print hexadecimal number with upper- or lower-case. Prefix is not printed by default. 
    411  *
    412  * All other characters from fmt except the formatting directives
     414 * X, x Print hexadecimal number with upper- or lower-case. Prefix is not printed by default.
     415 *
     416 * All other characters from @fmt except the formatting directives
    413417 * are printed in verbatim.
    414418 *
    415419 * @param fmt Formatting NULL terminated string.
    416  * @return count of printed characters or negative value on fail.
     420 * @return Number of printed characters or negative value on failure.
    417421 */
    418422int printf(const char *fmt, ...)
Note: See TracChangeset for help on using the changeset viewer.