mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Kernel: Stop supporting sprintf
The kernel no longer needs sprintf (which might, in theory, overflow), so we can hide the C++ declaration and make the function uncallable from within the kernel. However, libstdc++ still links against it, as libstdc++ uses it for demangling, from AK::demangle().
This commit is contained in:
parent
04f494fc44
commit
1aad0f8b16
2 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,6 @@ int dbgprintf(const char* fmt, ...);
|
|||
int dbgputstr(const char*, int);
|
||||
int kernelputstr(const char*, int);
|
||||
int kprintf(const char* fmt, ...);
|
||||
int sprintf(char* buf, const char* fmt, ...);
|
||||
int snprintf(char* buf, size_t, const char* fmt, ...);
|
||||
void set_serial_debug(bool on_or_off);
|
||||
int get_serial_debug();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue