]> granicus.if.org Git - zfs/blobdiff - module/spl/spl-xdr.c
Prefix all SPL debug macros with 'S'
[zfs] / module / spl / spl-xdr.c
index 375b74e536c2deb10e98f9e47e9078319f606192..eba470a4b0b1ad23d54aaf502b0873f926044a30 100644 (file)
 #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;
        }