From 630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Feb 2015 11:07:31 +0100 Subject: Change a bit of structure --- src/lib/libkogata/syscall.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/libkogata') diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index dc7e648..342426b 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -4,12 +4,7 @@ #include void dbg_print(const char* str) { - - char buf[256]; - strncpy(buf, str, 256); - buf[255] = 0; - - asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(buf)); + asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(str),"c"(strlen(str))); } void yield() { -- cgit v1.2.3