Fix up the build -- all the build errors
This commit is contained in:
parent
8411502db5
commit
75af75af4e
6 changed files with 14 additions and 12 deletions
|
@ -197,6 +197,8 @@ printFormat(const char* format,
|
|||
Size
|
||||
} state = Default;
|
||||
|
||||
auto& cons = kernel::Kernel::systemKernel().console();
|
||||
|
||||
int nchars = 0;
|
||||
Spec spec;
|
||||
|
||||
|
@ -207,14 +209,14 @@ printFormat(const char* format,
|
|||
state = Percent;
|
||||
spec.clear();
|
||||
} else {
|
||||
printChar(*p);
|
||||
cons.printChar(*p);
|
||||
nchars++;
|
||||
}
|
||||
break;
|
||||
case Percent:
|
||||
if (*p == '%') {
|
||||
state = Default;
|
||||
printChar(*p);
|
||||
cons.printChar(*p);
|
||||
nchars++;
|
||||
} else if (Char::isDigit(*p)) {
|
||||
if (*p == '0' && !spec.zeroPadded) {
|
||||
|
@ -247,7 +249,7 @@ printFormat(const char* format,
|
|||
}
|
||||
break;
|
||||
default:
|
||||
printChar(*p);
|
||||
cons.printChar(*p);
|
||||
nchars++;
|
||||
break;
|
||||
}
|
||||
|
@ -317,7 +319,7 @@ printFormat(const char* format,
|
|||
spec.type = Spec::Type::String;
|
||||
break;
|
||||
}
|
||||
nchars += spec.print(kernel::systemKernel().console());
|
||||
nchars += spec.print(cons);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ namespace kstd {
|
|||
* @return Number of characters printed
|
||||
* @{
|
||||
*/
|
||||
int printFormat(const char* format, ...) PRINTF(2,3);
|
||||
int printFormat(const char* format, ...) PRINTF(1,2);
|
||||
int printFormat(const char* format, va_list args);
|
||||
/** @} */
|
||||
|
||||
|
||||
} /* namespace kstd */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue