Changeset 810a36f in mainline for boot/generic
- Timestamp:
- 2017-10-24T05:29:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1eb7ef
- Parents:
- c8fbbe7 (diff), 673ea28 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- boot/generic
- Files:
-
- 4 edited
-
include/stddef.h (modified) (1 diff)
-
include/stdint.h (modified) (1 diff)
-
src/printf_core.c (modified) (3 diffs)
-
src/str.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/stddef.h
rc8fbbe7 r810a36f 33 33 #define BOOT_STDDEF_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 36 38 # define NULL ((void *) 0)37 #include <_bits/NULL.h> 39 38 40 39 #endif -
boot/generic/include/stdint.h
rc8fbbe7 r810a36f 33 33 #define BOOT_STDINT_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 38 #define INT8_MIN INT8_C(0x80)39 #define INT8_MAX INT8_C(0x7F)40 41 #define UINT8_MIN UINT8_C(0)42 #define UINT8_MAX UINT8_C(0xFF)43 44 #define INT16_MIN INT16_C(0x8000)45 #define INT16_MAX INT16_C(0x7FFF)46 47 #define UINT16_MIN UINT16_C(0)48 #define UINT16_MAX UINT16_C(0xFFFF)49 50 #define INT32_MIN INT32_C(0x80000000)51 #define INT32_MAX INT32_C(0x7FFFFFFF)52 53 #define UINT32_MIN UINT32_C(0)54 #define UINT32_MAX UINT32_C(0xFFFFFFFF)55 56 #define INT64_MIN INT64_C(0x8000000000000000)57 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF)58 59 #define UINT64_MIN UINT64_C(0)60 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF)61 36 62 37 #endif -
boot/generic/src/printf_core.c
rc8fbbe7 r810a36f 101 101 PrintfQualifierLongLong, 102 102 PrintfQualifierPointer, 103 PrintfQualifierSize 103 PrintfQualifierSize, 104 PrintfQualifierMax 104 105 } qualifier_t; 105 106 … … 643 644 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 644 645 break; 646 case 'j': 647 qualifier = PrintfQualifierMax; 648 i = nxt; 649 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 650 break; 645 651 default: 646 652 /* Default type */ … … 759 765 number = (uint64_t) va_arg(ap, size_t); 760 766 break; 767 case PrintfQualifierMax: 768 size = sizeof(uintmax_t); 769 number = (uint64_t) va_arg(ap, uintmax_t); 770 break; 761 771 default: 762 772 /* Unknown qualifier */ -
boot/generic/src/str.c
rc8fbbe7 r810a36f 104 104 105 105 /** Check the condition if wchar_t is signed */ 106 #ifdef WCHAR_IS_UNSIGNED106 #ifdef __WCHAR_UNSIGNED__ 107 107 #define WCHAR_SIGNED_CHECK(cond) (true) 108 108 #else
Note:
See TracChangeset
for help on using the changeset viewer.
