diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-07 23:48:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-07 23:49:15 +0100 |
commit | 71ca7ba31f261c72e5d3d059be90d957cc035287 (patch) | |
tree | 9b90feb22ea955b84eafdaf0d7b42094afecf515 /Kernel/Net/Socket.cpp | |
parent | d04fcccc90dfa99031e5e16c2b2be7a31e613520 (diff) | |
download | serenity-71ca7ba31f261c72e5d3d059be90d957cc035287.zip |
Kernel: Fix three broken format strings in Socket::{get,set}sockopt()
These had more %'s than actual arguments, oops!
Diffstat (limited to 'Kernel/Net/Socket.cpp')
-rw-r--r-- | Kernel/Net/Socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index a7e755d9d3..48acfe334a 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -113,7 +113,7 @@ KResult Socket::setsockopt(int level, int option, const void* value, socklen_t v m_receive_timeout = *(const timeval*)value; return KSuccess; default: - kprintf("%s(%u): setsockopt() at SOL_SOCKET with unimplemented option %d\n", current->process().name().characters(), current->process().pid(), option); + dbg() << "setsockopt(" << option << ") at SOL_SOCKET not implemented."; return KResult(-ENOPROTOOPT); } } @@ -137,12 +137,12 @@ KResult Socket::getsockopt(FileDescription&, int level, int option, void* value, case SO_ERROR: if (*value_size < sizeof(int)) return KResult(-EINVAL); - kprintf("%s(%u): getsockopt() SO_ERROR: WARNING! I have no idea what the real error is, so I'll just stick my fingers in my ears and pretend there is none! %d\n", current->process().name().characters(), option); + dbg() << "getsockopt(SO_ERROR): FIXME!"; *(int*)value = 0; *value_size = sizeof(int); return KSuccess; default: - kprintf("%s(%u): getsockopt() at SOL_SOCKET with unimplemented option %d\n", current->process().name().characters(), option); + dbg() << "getsockopt(" << option << ") at SOL_SOCKET not implemented."; return KResult(-ENOPROTOOPT); } } |