git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git]
/
lunaix-os
/
libs
/
klibc
/
stdio
/
ksprintf.c
diff --git
a/lunaix-os/libs/klibc/stdio/ksprintf.c
b/lunaix-os/libs/klibc/stdio/ksprintf.c
index 2497e107b7821eba1ebe3eb7f09d49a2d3ce8b10..78c510a214761c8ab554a3c3066bd2ceb90196e9 100644
(file)
--- a/
lunaix-os/libs/klibc/stdio/ksprintf.c
+++ b/
lunaix-os/libs/klibc/stdio/ksprintf.c
@@
-2,7
+2,7
@@
#include <klibc/stdio.h>
#include <klibc/stdlib.h>
#include <klibc/string.h>
#include <klibc/stdio.h>
#include <klibc/stdlib.h>
#include <klibc/string.h>
-#include <
stdint
.h>
+#include <
lunaix/types
.h>
#define NUMBUFSIZ 24
#define NUMBUFSIZ 24
@@
-26,7
+26,7
@@
__ksprintf_internal(char* buffer, char* fmt, size_t max_len, va_list vargs)
// Of course, with some modifications for porting to LunaixOS :)
char numbuf[NUMBUFSIZ];
// Of course, with some modifications for porting to LunaixOS :)
char numbuf[NUMBUFSIZ];
- u
int
32_t ptr = 0;
+ u32_t ptr = 0;
for (; *fmt; ++fmt) {
if (max_len && ptr >= max_len - 1) {
break;
for (; *fmt; ++fmt) {
if (max_len && ptr >= max_len - 1) {
break;