Changeset 7f0837c in mainline for generic/src/debug/print.c
- Timestamp:
- 2006-04-24T12:59:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd8af4b
- Parents:
- 24f3874
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/debug/print.c
r24f3874 r7f0837c 81 81 } 82 82 83 /** Print one string without appending '\n' to the end 84 * 85 * Do nt use this function directly - printflock is not locked here83 /** Print one string without appending '\n' to the end. 84 * 85 * Do not use this function directly - printflock is not locked here. 86 86 * 87 87 */ … … 99 99 } 100 100 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. 103 107 */ 104 108 static int putnchars(const char *buffer, __native count) … … 119 123 /** Print one formatted character 120 124 * 121 * @param c character to print125 * @param c Character to print. 122 126 * @param width 123 127 * @param flags 124 * @return number of printed characters or EOF128 * @return Number of printed characters or EOF. 125 129 */ 126 130 static int print_char(char c, int width, __u64 flags) … … 350 354 } 351 355 352 /** General formatted text print353 * 354 * Print string formatted according to the fmt parameter356 /** Print formatted string. 357 * 358 * Print string formatted according to the @fmt parameter 355 359 * and variadic arguments. Each formatting directive 356 360 * must have the following form: … … 362 366 * - Align to left. 363 367 * + 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. 366 370 * This flag is ignored if '-' flag is specified. 367 371 * … … 369 373 * Specify minimal width of printed argument. If it is bigger, width is ignored. 370 374 * If width is specified with a '*' character instead of number, width is taken from parameter list. 371 * Int parameterexpected before parameter for processed conversion specification.375 * And integer parameter is expected before parameter for processed conversion specification. 372 376 * If this value is negative its absolute value is taken and the '-' flag is set. 373 377 * … … 391 395 * CONVERSIONS: 392 396 * 393 * % Print percentage character .397 * % Print percentage character itself. 394 398 * 395 399 * c Print single character. … … 398 402 * 399 403 * P, p Print value of a pointer. Void * value is expected and it is printed in hexadecimal notation with prefix 400 * ( 404 * (as with %#X or %#x for 32bit or %#X / %#x for 64bit long pointers). 401 405 * 402 406 * b Print value as unsigned binary number. Prefix is not printed by default. (Nonstandard extension.) … … 408 412 * u Print unsigned decimal number. 409 413 * 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 directives414 * 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 413 417 * are printed in verbatim. 414 418 * 415 419 * @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. 417 421 */ 418 422 int printf(const char *fmt, ...)
Note:
See TracChangeset
for help on using the changeset viewer.