mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Remove print_string(2).
This wasn't being used by anyone and was a security risk.
This commit is contained in:
parent
ebef48ed61
commit
eac602c9a1
1 changed files with 0 additions and 8 deletions
|
@ -38,12 +38,6 @@ size_t (*device_height)(void*) = NULL;
|
||||||
bool (*device_sync)(void*) = NULL;
|
bool (*device_sync)(void*) = NULL;
|
||||||
void* device_pointer = NULL;
|
void* device_pointer = NULL;
|
||||||
|
|
||||||
static size_t sys_print_string(const char* str)
|
|
||||||
{
|
|
||||||
// TODO: Check that str is a user-readable string!
|
|
||||||
return Print(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Init(size_t (*callback)(void*, const char*, size_t),
|
void Init(size_t (*callback)(void*, const char*, size_t),
|
||||||
size_t (*widthfunc)(void*),
|
size_t (*widthfunc)(void*),
|
||||||
size_t (*heightfunc)(void*),
|
size_t (*heightfunc)(void*),
|
||||||
|
@ -55,8 +49,6 @@ void Init(size_t (*callback)(void*, const char*, size_t),
|
||||||
device_height = heightfunc;
|
device_height = heightfunc;
|
||||||
device_sync = syncfunc;
|
device_sync = syncfunc;
|
||||||
device_pointer = user;
|
device_pointer = user;
|
||||||
|
|
||||||
Syscall::Register(SYSCALL_PRINT_STRING, (void*) sys_print_string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Log
|
} // namespace Log
|
||||||
|
|
Loading…
Add table
Reference in a new issue