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
feat: IO polling for file descriptor
[lunaix-os.git]
/
lunaix-os
/
kernel
/
device
/
device.c
diff --git
a/lunaix-os/kernel/device/device.c
b/lunaix-os/kernel/device/device.c
index b25a9c203594bab14d2d2892ca04bbe39d5e5796..87657551eb50a0e5a3ac42a257d712ad8e011344 100644
(file)
--- a/
lunaix-os/kernel/device/device.c
+++ b/
lunaix-os/kernel/device/device.c
@@
-8,7
+8,7
@@
#include <lunaix/syscall.h>
#include <lunaix/syscall_utils.h>
#include <lunaix/syscall.h>
#include <lunaix/syscall_utils.h>
-#include <klibc/st
dio
.h>
+#include <klibc/st
rfmt
.h>
#include <klibc/string.h>
static DEFINE_LLIST(root_list);
#include <klibc/string.h>
static DEFINE_LLIST(root_list);
@@
-21,7
+21,7
@@
void
device_setname_vargs(struct device* dev, char* fmt, va_list args)
{
size_t strlen =
device_setname_vargs(struct device* dev, char* fmt, va_list args)
{
size_t strlen =
-
__ksprintf_internal
(dev->name_val, fmt, DEVICE_NAME_SIZE, args);
+
ksnprintfv
(dev->name_val, fmt, DEVICE_NAME_SIZE, args);
dev->name = HSTR(dev->name_val, strlen);
dev->name = HSTR(dev->name_val, strlen);