Changeset 1e27d85 in mainline
- 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/src/printf_core.c
r96b89acb r1e27d85 79 79 PrintfQualifierLong, 80 80 PrintfQualifierLongLong, 81 PrintfQualifierPointer 81 PrintfQualifierPointer, 82 PrintfQualifierSize 82 83 } qualifier_t; 83 84 … … 431 432 * - "" Signed or unsigned int (default value).@n 432 433 * - "l" Signed or unsigned long int.@n 433 * If conversion is "c", the character is wchar_t (wide character).@n434 * If conversion is "s", the string is wchar_t * (wide string).@n435 434 * - "ll" Signed or unsigned long long int.@n 436 435 * … … 612 611 } 613 612 break; 613 case 'z': 614 qualifier = PrintfQualifierSize; 615 i = nxt; 616 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 617 break; 614 618 default: 615 619 /* Default type */ … … 720 724 number = (uint64_t) (uintptr_t) va_arg(ap, void *); 721 725 break; 726 case PrintfQualifierSize: 727 size = sizeof(size_t); 728 number = (uint64_t) va_arg(ap, size_t); 729 break; 722 730 default: 723 731 /* Unknown qualifier */ -
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: -
uspace/lib/c/generic/io/printf_core.c
r96b89acb r1e27d85 82 82 PrintfQualifierLong, 83 83 PrintfQualifierLongLong, 84 PrintfQualifierPointer 84 PrintfQualifierPointer, 85 PrintfQualifierSize 85 86 } qualifier_t; 86 87 … … 552 553 * - "" Signed or unsigned int (default value).@n 553 554 * - "l" Signed or unsigned long int.@n 554 * If conversion is "c", the character is w char_t (wide character).@n555 * If conversion is "c", the character is wint_t (wide character).@n 555 556 * If conversion is "s", the string is wchar_t * (wide string).@n 556 557 * - "ll" Signed or unsigned long long int.@n 558 * - "z" Signed or unsigned ssize_t or site_t.@n 557 559 * 558 560 * CONVERSION:@n … … 736 738 } 737 739 break; 740 case 'z': 741 qualifier = PrintfQualifierSize; 742 i = nxt; 743 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 744 break; 738 745 default: 739 746 /* Default type */ … … 763 770 case 'c': 764 771 if (qualifier == PrintfQualifierLong) 765 retval = print_wchar(va_arg(ap, w char_t), width, flags, ps);772 retval = print_wchar(va_arg(ap, wint_t), width, flags, ps); 766 773 else 767 774 retval = print_char(va_arg(ap, unsigned int), width, flags, ps); … … 849 856 precision = size << 1; 850 857 number = (uint64_t) (uintptr_t) va_arg(ap, void *); 858 break; 859 case PrintfQualifierSize: 860 size = sizeof(size_t); 861 number = (uint64_t) va_arg(ap, size_t); 851 862 break; 852 863 default:
Note:
See TracChangeset
for help on using the changeset viewer.