ncp_unlock_server(server);
        if (error < 0)
                goto out_rxbuf;
-       ncp_dbg(1, "NCP_SBP(sb) = %x\n", (int) NCP_SBP(sb));
+       ncp_dbg(1, "NCP_SBP(sb) = %p\n", NCP_SBP(sb));
 
        error = -EMSGSIZE;      /* -EREMOTESIDEINCOMPATIBLE */
 #ifdef CONFIG_NCPFS_PACKET_SIGNING
        if ((attr->ia_valid & ATTR_SIZE) != 0) {
                int written;
 
-               ncp_dbg(1, "trying to change size to %ld\n", attr->ia_size);
+               ncp_dbg(1, "trying to change size to %llu\n", attr->ia_size);
 
                if ((result = ncp_make_open(inode, O_WRONLY)) < 0) {
                        result = -EACCES;