Changeset 1e27d85 in mainline for kernel/generic/src/printf/printf_core.c
- Timestamp:
- 2010-11-26T01:03:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d16fc78
- Parents:
- 96b89acb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/printf_core.c
r96b89acb r1e27d85 83 83 PrintfQualifierLong, 84 84 PrintfQualifierLongLong, 85 PrintfQualifierPointer 85 PrintfQualifierPointer, 86 PrintfQualifierSize 86 87 } qualifier_t; 87 88 … … 553 554 * - "" Signed or unsigned int (default value).@n 554 555 * - "l" Signed or unsigned long int.@n 555 * If conversion is "c", the character is w char_t (wide character).@n556 * If conversion is "c", the character is wint_t (wide character).@n 556 557 * If conversion is "s", the string is wchar_t * (wide string).@n 557 558 * - "ll" Signed or unsigned long long int.@n 559 * - "z" Signed or unsigned ssize_t or site_t.@n 558 560 * 559 561 * CONVERSION:@n … … 737 739 } 738 740 break; 741 case 'z': 742 qualifier = PrintfQualifierSize; 743 i = nxt; 744 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 745 break; 739 746 default: 740 747 /* Default type */ … … 764 771 case 'c': 765 772 if (qualifier == PrintfQualifierLong) 766 retval = print_wchar(va_arg(ap, w char_t), width, flags, ps);773 retval = print_wchar(va_arg(ap, wint_t), width, flags, ps); 767 774 else 768 775 retval = print_char(va_arg(ap, unsigned int), width, flags, ps); … … 850 857 precision = size << 1; 851 858 number = (uint64_t) (uintptr_t) va_arg(ap, void *); 859 break; 860 case PrintfQualifierSize: 861 size = sizeof(size_t); 862 number = (uint64_t) va_arg(ap, size_t); 852 863 break; 853 864 default:
Note:
See TracChangeset
for help on using the changeset viewer.