I like it better this way. dprintf is not available in userland. ;)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
130720373d
commit
cc14c99624
|
@ -11,13 +11,21 @@
|
|||
#include <KPPPOptionHandler.h>
|
||||
|
||||
#include <LockerHelper.h>
|
||||
#include <KernelExport.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <core_funcs.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
|
||||
#ifdef _KERNEL_MODE
|
||||
#include <KernelExport.h>
|
||||
#define spawn_thread spawn_kernel_thread
|
||||
#define printf dprintf
|
||||
#else
|
||||
#include <cstdio>
|
||||
#endif
|
||||
|
||||
|
||||
PPPLCP::PPPLCP(PPPInterface& interface)
|
||||
: PPPProtocol("LCP", PPP_ESTABLISHMENT_PHASE, PPP_LCP_PROTOCOL, PPP_PROTOCOL_LEVEL,
|
||||
AF_UNSPEC, 0, interface, NULL, PPP_ALWAYS_ALLOWED),
|
||||
|
@ -219,7 +227,7 @@ PPPLCP::Receive(struct mbuf *packet, uint16 protocolNumber)
|
|||
return B_ERROR;
|
||||
|
||||
if(protocolNumber != PPP_LCP_PROTOCOL) {
|
||||
dprintf("PPPLCP::Receive(): wrong protocol number!\n");
|
||||
printf("PPPLCP::Receive(): wrong protocol number!\n");
|
||||
return PPP_UNHANDLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue