diff options
author | Brian Behlendorf <[email protected]> | 2010-07-20 11:55:37 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-07-20 13:30:40 -0700 |
commit | b17edc10a9c66543bef54b08e4655832aefe8939 (patch) | |
tree | 341fbedbb1ac18556f43301da648aeaf6c3d5fd0 /module/spl/spl-xdr.c | |
parent | 55abb0929e4fbe326a9737650a167a1a988ad86b (diff) |
Prefix all SPL debug macros with 'S'
To avoid conflicts with symbols defined by dependent packages
all debugging symbols have been prefixed with a 'S' for SPL.
Any dependent package needing to integrate with the SPL debug
should include the spl-debug.h header and use the 'S' prefixed
macros. They must also build with DEBUG defined.
Diffstat (limited to 'module/spl/spl-xdr.c')
-rw-r--r-- | module/spl/spl-xdr.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/module/spl/spl-xdr.c b/module/spl/spl-xdr.c index 375b74e53..eba470a4b 100644 --- a/module/spl/spl-xdr.c +++ b/module/spl/spl-xdr.c @@ -29,6 +29,12 @@ #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. * @@ -144,7 +150,7 @@ xdrmem_create(XDR *xdrs, const caddr_t addr, const uint_t size, 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; } @@ -154,7 +160,7 @@ xdrmem_create(XDR *xdrs, const caddr_t addr, const uint_t size, 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; } } @@ -166,7 +172,7 @@ xdrmem_control(XDR *xdrs, int req, void *info) 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; } |