#include <rpc/xdr.h>
#include <spl-debug.h>
+#ifdef SS_DEBUG_SUBSYS
+#undef SS_DEBUG_SUBSYS
+#endif
+
+#define SS_DEBUG_SUBSYS SS_XDR
+
/*
* SPL's XDR mem implementation.
*
xdrs->x_ops = &xdrmem_decode_ops;
break;
default:
- CWARN("Invalid op value: %d\n", op);
+ SWARN("Invalid op value: %d\n", op);
xdrs->x_ops = NULL; /* Let the caller know we failed */
return;
}
xdrs->x_addr_end = addr + size;
if (xdrs->x_addr_end < xdrs->x_addr) {
- CWARN("Overflow while creating xdrmem: %p, %u\n", addr, size);
+ SWARN("Overflow while creating xdrmem: %p, %u\n", addr, size);
xdrs->x_ops = NULL;
}
}
struct xdr_bytesrec *rec = (struct xdr_bytesrec *) info;
if (req != XDR_GET_BYTES_AVAIL) {
- CWARN("Called with unknown request: %d\n", req);
+ SWARN("Called with unknown request: %d\n", req);
return FALSE;
}