staging: lustre: remove LPX64 define
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 03:26:07 +0000 (20:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 03:26:07 +0000 (20:26 -0700)
Just use the proper modifier type...

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 files changed:
drivers/staging/lustre/include/linux/libcfs/linux/kp30.h
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c
drivers/staging/lustre/lnet/lnet/api-ni.c
drivers/staging/lustre/lnet/lnet/lib-me.c
drivers/staging/lustre/lnet/lnet/lib-move.c
drivers/staging/lustre/lnet/lnet/lib-ptl.c
drivers/staging/lustre/lnet/selftest/brw_test.c
drivers/staging/lustre/lnet/selftest/rpc.c
drivers/staging/lustre/lustre/fid/fid_request.c
drivers/staging/lustre/lustre/fid/lproc_fid.c
drivers/staging/lustre/lustre/fld/fld_request.c
drivers/staging/lustre/lustre/include/lustre/lustre_idl.h
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/include/lustre_fid.h
drivers/staging/lustre/lustre/lclient/lcommon_misc.c
drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c
drivers/staging/lustre/lustre/ldlm/ldlm_request.c
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
drivers/staging/lustre/lustre/llite/dcache.c
drivers/staging/lustre/lustre/llite/dir.c
drivers/staging/lustre/lustre/llite/file.c
drivers/staging/lustre/lustre/llite/llite_capa.c
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/namei.c
drivers/staging/lustre/lustre/lmv/lmv_fld.c
drivers/staging/lustre/lustre/lmv/lmv_obd.c
drivers/staging/lustre/lustre/lov/lov_ea.c
drivers/staging/lustre/lustre/lov/lov_obd.c
drivers/staging/lustre/lustre/mdc/mdc_request.c
drivers/staging/lustre/lustre/mgc/mgc_request.c
drivers/staging/lustre/lustre/obdclass/capa.c
drivers/staging/lustre/lustre/obdclass/class_obd.c
drivers/staging/lustre/lustre/obdclass/debug.c
drivers/staging/lustre/lustre/obdclass/genops.c
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c
drivers/staging/lustre/lustre/obdclass/llog_swab.c
drivers/staging/lustre/lustre/obdclass/local_storage.c
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
drivers/staging/lustre/lustre/obdclass/lustre_handles.c
drivers/staging/lustre/lustre/obdclass/obd_config.c
drivers/staging/lustre/lustre/obdclass/obdo.c
drivers/staging/lustre/lustre/obdecho/echo.c
drivers/staging/lustre/lustre/obdecho/echo_client.c
drivers/staging/lustre/lustre/osc/osc_lock.c
drivers/staging/lustre/lustre/osc/osc_request.c
drivers/staging/lustre/lustre/ptlrpc/client.c
drivers/staging/lustre/lustre/ptlrpc/import.c
drivers/staging/lustre/lustre/ptlrpc/niobuf.c
drivers/staging/lustre/lustre/ptlrpc/pack_generic.c

index ea22ca78375984d27bd52d09e5ce74730401b85f..88cce4cc049a7cb80b67ed49d8f823b9e4044043 100644 (file)
@@ -68,8 +68,4 @@
 
 #include "portals_compat25.h"
 
-/* this is a bit chunky */
-
-# define LPX64 "%#llx"
-
 #endif
index 7a47144787d65a47fae67de530be582019a81518..ab1643943496fce32dfa7ddd266279ffecf8d235 100644 (file)
@@ -959,7 +959,7 @@ kiblnd_close_stale_conns_locked (kib_peer_t *peer,
                        continue;
 
                CDEBUG(D_NET, "Closing stale conn -> %s version: %x, "
-                             "incarnation:"LPX64"(%x, "LPX64")\n",
+                             "incarnation:%#llx(%x, %#llx)\n",
                       libcfs_nid2str(peer->ibp_nid),
                       conn->ibc_version, conn->ibc_incarnation,
                       version, incarnation);
@@ -1202,7 +1202,7 @@ kiblnd_map_rx_descs(kib_conn_t *conn)
                                                   rx->rx_msgaddr));
                KIBLND_UNMAP_ADDR_SET(rx, rx_msgunmap, rx->rx_msgaddr);
 
-               CDEBUG(D_NET,"rx %d: %p "LPX64"("LPX64")\n",
+               CDEBUG(D_NET,"rx %d: %p %#llx(%#llx)\n",
                       i, rx->rx_msg, rx->rx_msgaddr,
                       lnet_page2phys(pg) + pg_off);
 
@@ -2336,7 +2336,7 @@ kiblnd_hdev_get_attr(kib_hca_dev_t *hdev)
                        return 0;
        }
 
-       CERROR("Invalid mr size: "LPX64"\n", hdev->ibh_mr_size);
+       CERROR("Invalid mr size: %#llx\n", hdev->ibh_mr_size);
        return -EINVAL;
 }
 
@@ -2418,8 +2418,8 @@ kiblnd_hdev_setup_mrs(kib_hca_dev_t *hdev)
 
        if (hdev->ibh_mr_shift < 32 || hdev->ibh_nmrs > 1024) {
                /* it's 4T..., assume we will re-code at that time */
-               CERROR("Can't support memory size: x"LPX64
-                      " with MR size: x"LPX64"\n", mm_size, mr_size);
+               CERROR("Can't support memory size: x%#llx with MR size: x%#llx\n",
+                      mm_size, mr_size);
                return -EINVAL;
        }
 
@@ -2440,8 +2440,7 @@ kiblnd_hdev_setup_mrs(kib_hca_dev_t *hdev)
 
                mr = ib_reg_phys_mr(hdev->ibh_pd, &ipb, 1, acflags, &iova);
                if (IS_ERR(mr)) {
-                       CERROR("Failed ib_reg_phys_mr addr "LPX64
-                              " size "LPX64" : %ld\n",
+                       CERROR("Failed ib_reg_phys_mr addr %#llx size %#llx : %ld\n",
                               ipb.addr, ipb.size, PTR_ERR(mr));
                        kiblnd_hdev_cleanup_mrs(hdev);
                        return PTR_ERR(mr);
@@ -2454,8 +2453,7 @@ kiblnd_hdev_setup_mrs(kib_hca_dev_t *hdev)
 
 out:
        if (hdev->ibh_mr_size != ~0ULL || hdev->ibh_nmrs != 1)
-               LCONSOLE_INFO("Register global MR array, MR size: "
-                             LPX64", array size: %d\n",
+               LCONSOLE_INFO("Register global MR array, MR size: %#llx, array size: %d\n",
                              hdev->ibh_mr_size, hdev->ibh_nmrs);
        return 0;
 }
index 21cd02c369dd76bc0e8859c7477b41329a053bce..306d72876432a730baa16cda698f32414facfd5c 100644 (file)
@@ -247,7 +247,7 @@ kiblnd_handle_completion(kib_conn_t *conn, int txtype, int status, __u64 cookie)
        if (tx == NULL) {
                spin_unlock(&conn->ibc_lock);
 
-               CWARN("Unmatched completion type %x cookie "LPX64" from %s\n",
+               CWARN("Unmatched completion type %x cookie %#llx from %s\n",
                      txtype, cookie, libcfs_nid2str(conn->ibc_peer->ibp_nid));
                kiblnd_close_conn(conn, -EPROTO);
                return;
@@ -1005,8 +1005,7 @@ kiblnd_tx_complete (kib_tx_t *tx, int status)
 
        if (failed) {
                if (conn->ibc_state == IBLND_CONN_ESTABLISHED)
-                       CNETERR("Tx -> %s cookie "LPX64
-                               " sending %d waiting %d: failed %d\n",
+                       CNETERR("Tx -> %s cookie %#llx sending %d waiting %d: failed %d\n",
                                libcfs_nid2str(conn->ibc_peer->ibp_nid),
                                tx->tx_cookie, tx->tx_sending, tx->tx_waiting,
                                status);
index d6236ea83b8e732918e01396f48fe372790c73d3..f4a2c65d3c48aa06c926e497f4faca683df57160 100644 (file)
@@ -1575,7 +1575,7 @@ EXPORT_SYMBOL(LNetGetId);
 void
 LNetSnprintHandle(char *str, int len, lnet_handle_any_t h)
 {
-       snprintf(str, len, LPX64, h.cookie);
+       snprintf(str, len, "%#llx", h.cookie);
 }
 EXPORT_SYMBOL(LNetSnprintHandle);
 
index 4397e26cd30fc0ad9032f42adc44390a09119533..a3f92924471123e21f969cd9addd2f98e78d8642 100644 (file)
@@ -283,7 +283,7 @@ lnet_me_unlink(lnet_me_t *me)
 static void
 lib_me_dump(lnet_me_t *me)
 {
-       CWARN("Match Entry %p ("LPX64")\n", me,
+       CWARN("Match Entry %p (%#llx)\n", me,
              me->me_lh.lh_cookie);
 
        CWARN("\tMatch/Ignore\t= %016lx / %016lx\n",
index ad7d6773db94c846dcf9842de58e1af440945677..4b9567d67f33a8e1ae22242b7af2f7362eb26fcb 100644 (file)
@@ -1518,8 +1518,7 @@ lnet_parse_reply(lnet_ni_t *ni, lnet_msg_t *msg)
        /* NB handles only looked up by creator (no flips) */
        md = lnet_wire_handle2md(&hdr->msg.reply.dst_wmd);
        if (md == NULL || md->md_threshold == 0 || md->md_me != NULL) {
-               CNETERR("%s: Dropping REPLY from %s for %s "
-                       "MD "LPX64"."LPX64"\n",
+               CNETERR("%s: Dropping REPLY from %s for %s MD %#llx.%#llx\n",
                        libcfs_nid2str(ni->ni_nid), libcfs_id2str(src),
                        (md == NULL) ? "invalid" : "inactive",
                        hdr->msg.reply.dst_wmd.wh_interface_cookie,
@@ -1539,8 +1538,7 @@ lnet_parse_reply(lnet_ni_t *ni, lnet_msg_t *msg)
 
        if (mlength < rlength &&
            (md->md_options & LNET_MD_TRUNCATE) == 0) {
-               CNETERR("%s: Dropping REPLY from %s length %d "
-                       "for MD "LPX64" would overflow (%d)\n",
+               CNETERR("%s: Dropping REPLY from %s length %d for MD %#llx would overflow (%d)\n",
                        libcfs_nid2str(ni->ni_nid), libcfs_id2str(src),
                        rlength, hdr->msg.reply.dst_wmd.wh_object_cookie,
                        mlength);
@@ -1548,7 +1546,7 @@ lnet_parse_reply(lnet_ni_t *ni, lnet_msg_t *msg)
                return ENOENT;    /* +ve: OK but no match */
        }
 
-       CDEBUG(D_NET, "%s: Reply from %s of length %d/%d into md "LPX64"\n",
+       CDEBUG(D_NET, "%s: Reply from %s of length %d/%d into md %#llx\n",
               libcfs_nid2str(ni->ni_nid), libcfs_id2str(src),
               mlength, rlength, hdr->msg.reply.dst_wmd.wh_object_cookie);
 
@@ -1588,7 +1586,7 @@ lnet_parse_ack(lnet_ni_t *ni, lnet_msg_t *msg)
        if (md == NULL || md->md_threshold == 0 || md->md_me != NULL) {
                /* Don't moan; this is expected */
                CDEBUG(D_NET,
-                      "%s: Dropping ACK from %s to %s MD "LPX64"."LPX64"\n",
+                      "%s: Dropping ACK from %s to %s MD %#llx.%#llx\n",
                       libcfs_nid2str(ni->ni_nid), libcfs_id2str(src),
                       (md == NULL) ? "invalid" : "inactive",
                       hdr->msg.ack.dst_wmd.wh_interface_cookie,
@@ -1601,7 +1599,7 @@ lnet_parse_ack(lnet_ni_t *ni, lnet_msg_t *msg)
                return ENOENT;            /* +ve! */
        }
 
-       CDEBUG(D_NET, "%s: ACK from %s into md "LPX64"\n",
+       CDEBUG(D_NET, "%s: ACK from %s into md %#llx\n",
               libcfs_nid2str(ni->ni_nid), libcfs_id2str(src),
               hdr->msg.ack.dst_wmd.wh_object_cookie);
 
@@ -1678,19 +1676,19 @@ lnet_print_hdr(lnet_hdr_t *hdr)
                break;
 
        case LNET_MSG_PUT:
-               CWARN("    Ptl index %d, ack md "LPX64"."LPX64", "
+               CWARN("    Ptl index %d, ack md %#llx.%#llx, "
                      "match bits %llu\n",
                      hdr->msg.put.ptl_index,
                      hdr->msg.put.ack_wmd.wh_interface_cookie,
                      hdr->msg.put.ack_wmd.wh_object_cookie,
                      hdr->msg.put.match_bits);
-               CWARN("    Length %d, offset %d, hdr data "LPX64"\n",
+               CWARN("    Length %d, offset %d, hdr data %#llx\n",
                      hdr->payload_length, hdr->msg.put.offset,
                      hdr->msg.put.hdr_data);
                break;
 
        case LNET_MSG_GET:
-               CWARN("    Ptl index %d, return md "LPX64"."LPX64", "
+               CWARN("    Ptl index %d, return md %#llx.%#llx, "
                      "match bits %llu\n", hdr->msg.get.ptl_index,
                      hdr->msg.get.return_wmd.wh_interface_cookie,
                      hdr->msg.get.return_wmd.wh_object_cookie,
@@ -1701,7 +1699,7 @@ lnet_print_hdr(lnet_hdr_t *hdr)
                break;
 
        case LNET_MSG_ACK:
-               CWARN("    dst md "LPX64"."LPX64", "
+               CWARN("    dst md %#llx.%#llx, "
                      "manipulated length %d\n",
                      hdr->msg.ack.dst_wmd.wh_interface_cookie,
                      hdr->msg.ack.dst_wmd.wh_object_cookie,
@@ -1709,7 +1707,7 @@ lnet_print_hdr(lnet_hdr_t *hdr)
                break;
 
        case LNET_MSG_REPLY:
-               CWARN("    dst md "LPX64"."LPX64", "
+               CWARN("    dst md %#llx.%#llx, "
                      "length %d\n",
                      hdr->msg.reply.dst_wmd.wh_interface_cookie,
                      hdr->msg.reply.dst_wmd.wh_object_cookie,
index 425fa04292bd7d9fcc18de7b9832ad5bd52ebe81..91767c9e15ddbbd037e171d2d9438425f4365d4e 100644 (file)
@@ -193,7 +193,7 @@ lnet_try_match_md(lnet_libmd_t *md,
 
        /* Commit to this ME/MD */
        CDEBUG(D_NET, "Incoming %s index %x from %s of "
-              "length %d/%d into md "LPX64" [%d] + %d\n",
+              "length %d/%d into md %#llx [%d] + %d\n",
               (info->mi_opc == LNET_MD_OP_PUT) ? "put" : "get",
               info->mi_portal, libcfs_id2str(info->mi_id), mlength,
               info->mi_rlength, md->md_lh.lh_cookie, md->md_niov, offset);
@@ -540,9 +540,9 @@ lnet_ptl_match_md(struct lnet_match_info *info, struct lnet_msg *msg)
        struct lnet_portal      *ptl;
        int                     rc;
 
-       CDEBUG(D_NET, "Request from %s of length %d into portal %d "
-              "MB="LPX64"\n", libcfs_id2str(info->mi_id),
-              info->mi_rlength, info->mi_portal, info->mi_mbits);
+       CDEBUG(D_NET, "Request from %s of length %d into portal %d MB=%#llx\n",
+              libcfs_id2str(info->mi_id), info->mi_rlength, info->mi_portal,
+              info->mi_mbits);
 
        if (info->mi_portal >= the_lnet.ln_nportals) {
                CERROR("Invalid portal %d not in [0-%d]\n",
@@ -596,7 +596,7 @@ lnet_ptl_match_md(struct lnet_match_info *info, struct lnet_msg *msg)
 
        if (msg->msg_rx_delayed) {
                CDEBUG(D_NET,
-                      "Delaying %s from %s ptl %d MB "LPX64" off %d len %d\n",
+                      "Delaying %s from %s ptl %d MB %#llx off %d len %d\n",
                       info->mi_opc == LNET_MD_OP_PUT ? "PUT" : "GET",
                       libcfs_id2str(info->mi_id), info->mi_portal,
                       info->mi_mbits, info->mi_roffset, info->mi_rlength);
index 3f8020cb93e6f3000ce87ebdc0afa0eda1029b12..bcce919c043313d26043c264ab632aa5246b5075 100644 (file)
@@ -216,7 +216,7 @@ brw_check_page(struct page *pg, int pattern, __u64 magic)
        LBUG();
 
 bad_data:
-       CERROR("Bad data in page %p: "LPX64", "LPX64" expected\n",
+       CERROR("Bad data in page %p: %#llx, %#llx expected\n",
                pg, data, magic);
        return 1;
 }
index d5ccbc36902ae782561c6d53291bf1399529c099..a9f29d8833a900eb66f9e382d72ba524d6312035 100644 (file)
@@ -386,7 +386,7 @@ srpc_post_passive_rdma(int portal, int local, __u64 matchbits, void *buf,
        }
 
        CDEBUG (D_NET,
-               "Posted passive RDMA: peer %s, portal %d, matchbits "LPX64"\n",
+               "Posted passive RDMA: peer %s, portal %d, matchbits %#llx\n",
                libcfs_id2str(peer), portal, matchbits);
        return 0;
 }
@@ -437,7 +437,7 @@ srpc_post_active_rdma(int portal, __u64 matchbits, void *buf, int len,
                LASSERT (rc == 0);
        } else {
                CDEBUG (D_NET,
-                       "Posted active RDMA: peer %s, portal %u, matchbits "LPX64"\n",
+                       "Posted active RDMA: peer %s, portal %u, matchbits %#llx\n",
                        libcfs_id2str(peer), portal, matchbits);
        }
        return 0;
index e3708e3583254642dee1a92c2036d287635ba10b..9e31fe55c7501b9cd2a069e587941069b216880d 100644 (file)
@@ -211,7 +211,7 @@ static int seq_client_alloc_seq(const struct lu_env *env,
        *seqnr = seq->lcs_space.lsr_start;
        seq->lcs_space.lsr_start += 1;
 
-       CDEBUG(D_INFO, "%s: Allocated sequence ["LPX64"]\n", seq->lcs_name,
+       CDEBUG(D_INFO, "%s: Allocated sequence [%#llx]\n", seq->lcs_name,
               *seqnr);
 
        return rc;
index e809d035808b8de7c911ed1b703b9e87b1634e83..92a27fa9667c9db88cda3e218d7da30d3dd8dccf 100644 (file)
@@ -126,7 +126,7 @@ lprocfs_fid_space_seq_show(struct seq_file *m, void *unused)
        LASSERT(seq != NULL);
 
        mutex_lock(&seq->lcs_mutex);
-       rc = seq_printf(m, "["LPX64" - "LPX64"]:%x:%s\n", PRANGE(&seq->lcs_space));
+       rc = seq_printf(m, "[%#llx - %#llx]:%x:%s\n", PRANGE(&seq->lcs_space));
        mutex_unlock(&seq->lcs_mutex);
 
        return rc;
index b759cc9fe5f7cef39e6b9d9c638527e650ab91a4..8dd8884587e3838d05b22b3daf3bef900cf01f9d 100644 (file)
@@ -138,7 +138,7 @@ fld_rrb_scan(struct lu_client_fld *fld, seqno_t seq)
                        return target;
        }
 
-       CERROR("%s: Can't find target by hash %d (seq "LPX64"). Targets (%d):\n",
+       CERROR("%s: Can't find target by hash %d (seq %#llx). Targets (%d):\n",
                fld->lcf_name, hash, seq, fld->lcf_count);
 
        list_for_each_entry(target, &fld->lcf_targets, ft_chain) {
@@ -184,7 +184,7 @@ fld_client_get_target(struct lu_client_fld *fld, seqno_t seq)
        spin_unlock(&fld->lcf_lock);
 
        if (target != NULL) {
-               CDEBUG(D_INFO, "%s: Found target (idx %llu) by seq "LPX64"\n",
+               CDEBUG(D_INFO, "%s: Found target (idx %llu) by seq %#llx\n",
                       fld->lcf_name, target->ft_idx, seq);
        }
 
@@ -472,7 +472,7 @@ int fld_client_lookup(struct lu_client_fld *fld, seqno_t seq, mdsno_t *mds,
        target = fld_client_get_target(fld, seq);
        LASSERT(target != NULL);
 
-       CDEBUG(D_INFO, "%s: Lookup fld entry (seq: "LPX64") on target %s (idx %llu)\n",
+       CDEBUG(D_INFO, "%s: Lookup fld entry (seq: %#llx) on target %s (idx %llu)\n",
                        fld->lcf_name, seq, fld_target_name(target), target->ft_idx);
 
        res.lsr_start = seq;
index 5b84b721138225bac3947503f7b2e04470ab2f39..7571462737245fddbff7025f0ae9286fa2d056b1 100644 (file)
@@ -91,9 +91,7 @@
 #ifndef _LUSTRE_IDL_H_
 #define _LUSTRE_IDL_H_
 
-#if !defined(LPX64)
-#include "../../../include/linux/libcfs/libcfs.h"      /* for LPUX64, etc */
-#endif
+#include "../../../include/linux/libcfs/libcfs.h"
 
 /* Defn's shared with user-space. */
 #include "lustre_user.h"
@@ -2747,7 +2745,7 @@ struct ldlm_res_id {
        __u64 name[RES_NAME_SIZE];
 };
 
-#define DLDLMRES       "["LPX64":"LPX64":"LPX64"].%llx"
+#define DLDLMRES       "[%#llx:%#llx:%#llx].%llx"
 #define PLDLMRES(res)  (res)->lr_name.name[0], (res)->lr_name.name[1], \
                        (res)->lr_name.name[2], (res)->lr_name.name[3]
 
index 6309ce73af6a23cb384d3bde66ce4fdaf452c221..a69b27a78042fb6bcb5772243651e2bfbe9b330d 100644 (file)
@@ -179,7 +179,7 @@ struct ost_id {
        };
 };
 
-#define DOSTID LPX64":%llu"
+#define DOSTID "%#llx:%llu"
 #define POSTID(oi) ostid_seq(oi), ostid_id(oi)
 
 /*
@@ -475,7 +475,7 @@ static inline void obd_uuid2fsname(char *buf, char *uuid, int buflen)
    e.g. printf("file FID is "DFID"\n", PFID(fid)); */
 #define FID_NOBRACE_LEN 40
 #define FID_LEN (FID_NOBRACE_LEN + 2)
-#define DFID_NOBRACE LPX64":0x%x:0x%x"
+#define DFID_NOBRACE "%#llx:0x%x:0x%x"
 #define DFID "["DFID_NOBRACE"]"
 #define PFID(fid)     \
        (fid)->f_seq, \
index 7fa557bc80e668beef022b1cbd5083874927a619..ffb00f17124062dd0128728fdbcdcff17075f07d 100644 (file)
@@ -312,7 +312,7 @@ static inline void lu_last_id_fid(struct lu_fid *fid, __u64 seq)
                fid->f_seq = fid_idif_seq(0, 0);
        } else {
                LASSERTF(fid_seq_is_norm(seq) || fid_seq_is_echo(seq) ||
-                        fid_seq_is_idif(seq), LPX64"\n", seq);
+                        fid_seq_is_idif(seq), "%#llx\n", seq);
                fid->f_seq = seq;
        }
        fid->f_oid = 0;
index ec9ddc82ddb9b72f127e1d305f661d106e8b9847..01bf894d4a8731f3c0c32115b31f91feb3fe4874 100644 (file)
@@ -103,7 +103,7 @@ int cl_ocd_update(struct obd_device *host,
                cli = &watched->u.cli;
                lco = owner;
                flags = cli->cl_import->imp_connect_data.ocd_connect_flags;
-               CDEBUG(D_SUPER, "Changing connect_flags: "LPX64" -> "LPX64"\n",
+               CDEBUG(D_SUPER, "Changing connect_flags: %#llx -> %#llx\n",
                       lco->lco_flags, flags);
                mutex_lock(&lco->lco_lock);
                lco->lco_flags &= flags;
index 144cf77e4c56d2844e86c9f8031d5ba34062c7d3..fda9926bea3b2b0630294671fc485c8c5ba36f6d 100644 (file)
@@ -517,7 +517,7 @@ int client_connect_import(const struct lu_env *env,
 
        if (data) {
                LASSERTF((ocd->ocd_connect_flags & data->ocd_connect_flags) ==
-                        ocd->ocd_connect_flags, "old "LPX64", new "LPX64"\n",
+                        ocd->ocd_connect_flags, "old %#llx, new %#llx\n",
                         data->ocd_connect_flags, ocd->ocd_connect_flags);
                data->ocd_connect_flags = ocd->ocd_connect_flags;
        }
@@ -545,7 +545,7 @@ int client_disconnect_export(struct obd_export *exp)
        int rc = 0, err;
 
        if (!obd) {
-               CERROR("invalid export for disconnect: exp %p cookie "LPX64"\n",
+               CERROR("invalid export for disconnect: exp %p cookie %#llx\n",
                       exp, exp ? exp->exp_handle.h_cookie : -1);
                return -EINVAL;
        }
index ba8414e34ae819140b7b4b838bd7b406c3b69fc9..d022666fb705202b518e17d420e2d2d85385ba34 100644 (file)
@@ -897,7 +897,7 @@ void ldlm_lock_decref_internal(struct ldlm_lock *lock, __u32 mode)
 void ldlm_lock_decref(struct lustre_handle *lockh, __u32 mode)
 {
        struct ldlm_lock *lock = __ldlm_handle2lock(lockh, 0);
-       LASSERTF(lock != NULL, "Non-existing lock: "LPX64"\n", lockh->cookie);
+       LASSERTF(lock != NULL, "Non-existing lock: %#llx\n", lockh->cookie);
        ldlm_lock_decref_internal(lock, mode);
        LDLM_LOCK_PUT(lock);
 }
@@ -2255,9 +2255,9 @@ void _ldlm_lock_debug(struct ldlm_lock *lock,
 
        if (resource == NULL) {
                libcfs_debug_vmsg2(msgdata, fmt, args,
-                      " ns: \?\? lock: %p/"LPX64" lrc: %d/%d,%d mode: %s/%s "
-                      "res: \?\? rrc=\?\? type: \?\?\? flags: "LPX64" nid: %s "
-                      "remote: "LPX64" expref: %d pid: %u timeout: %lu "
+                      " ns: \?\? lock: %p/%#llx lrc: %d/%d,%d mode: %s/%s "
+                      "res: \?\? rrc=\?\? type: \?\?\? flags: %#llx nid: %s "
+                      "remote: %#llx expref: %d pid: %u timeout: %lu "
                       "lvb_type: %d\n",
                       lock,
                       lock->l_handle.h_cookie, atomic_read(&lock->l_refc),
@@ -2274,10 +2274,10 @@ void _ldlm_lock_debug(struct ldlm_lock *lock,
        switch (resource->lr_type) {
        case LDLM_EXTENT:
                libcfs_debug_vmsg2(msgdata, fmt, args,
-                       " ns: %s lock: %p/"LPX64" lrc: %d/%d,%d mode: %s/%s "
+                       " ns: %s lock: %p/%#llx lrc: %d/%d,%d mode: %s/%s "
                        "res: "DLDLMRES" rrc: %d type: %s [%llu->%llu] "
-                       "(req %llu->%llu) flags: "LPX64" nid: %s remote: "
-                       LPX64" expref: %d pid: %u timeout: %lu lvb_type: %d\n",
+                       "(req %llu->%llu) flags: %#llx nid: %s remote: "
+                       "%#llx expref: %d pid: %u timeout: %lu lvb_type: %d\n",
                        ldlm_lock_to_ns_name(lock), lock,
                        lock->l_handle.h_cookie, atomic_read(&lock->l_refc),
                        lock->l_readers, lock->l_writers,
@@ -2297,10 +2297,10 @@ void _ldlm_lock_debug(struct ldlm_lock *lock,
 
        case LDLM_FLOCK:
                libcfs_debug_vmsg2(msgdata, fmt, args,
-                       " ns: %s lock: %p/"LPX64" lrc: %d/%d,%d mode: %s/%s "
+                       " ns: %s lock: %p/%#llx lrc: %d/%d,%d mode: %s/%s "
                        "res: "DLDLMRES" rrc: %d type: %s pid: %d "
-                       "[%llu->%llu] flags: "LPX64" nid: %s "
-                       "remote: "LPX64" expref: %d pid: %u timeout: %lu\n",
+                       "[%llu->%llu] flags: %#llx nid: %s "
+                       "remote: %#llx expref: %d pid: %u timeout: %lu\n",
                        ldlm_lock_to_ns_name(lock), lock,
                        lock->l_handle.h_cookie, atomic_read(&lock->l_refc),
                        lock->l_readers, lock->l_writers,
@@ -2319,9 +2319,9 @@ void _ldlm_lock_debug(struct ldlm_lock *lock,
 
        case LDLM_IBITS:
                libcfs_debug_vmsg2(msgdata, fmt, args,
-                       " ns: %s lock: %p/"LPX64" lrc: %d/%d,%d mode: %s/%s "
-                       "res: "DLDLMRES" bits "LPX64" rrc: %d type: %s "
-                       "flags: "LPX64" nid: %s remote: "LPX64" expref: %d "
+                       " ns: %s lock: %p/%#llx lrc: %d/%d,%d mode: %s/%s "
+                       "res: "DLDLMRES" bits %#llx rrc: %d type: %s "
+                       "flags: %#llx nid: %s remote: %#llx expref: %d "
                        "pid: %u timeout: %lu lvb_type: %d\n",
                        ldlm_lock_to_ns_name(lock),
                        lock, lock->l_handle.h_cookie,
@@ -2341,9 +2341,9 @@ void _ldlm_lock_debug(struct ldlm_lock *lock,
 
        default:
                libcfs_debug_vmsg2(msgdata, fmt, args,
-                       " ns: %s lock: %p/"LPX64" lrc: %d/%d,%d mode: %s/%s "
-                       "res: "DLDLMRES" rrc: %d type: %s flags: "LPX64" "
-                       "nid: %s remote: "LPX64" expref: %d pid: %u "
+                       " ns: %s lock: %p/%#llx lrc: %d/%d,%d mode: %s/%s "
+                       "res: "DLDLMRES" rrc: %d type: %s flags: %#llx "
+                       "nid: %s remote: %#llx expref: %d pid: %u "
                        "timeout: %lu lvb_type: %d\n",
                        ldlm_lock_to_ns_name(lock),
                        lock, lock->l_handle.h_cookie,
index f043fc34c75cd148bb350cd1bba6c968221c644e..952e10eb6178b1f73e005b8f41a2ebf600e5aa11 100644 (file)
@@ -525,7 +525,7 @@ static inline void ldlm_callback_errmsg(struct ptlrpc_request *req,
                                        struct lustre_handle *handle)
 {
        DEBUG_REQ((req->rq_no_reply || rc) ? D_WARNING : D_DLMTRACE, req,
-                 "%s: [nid %s] [rc %d] [lock "LPX64"]",
+                 "%s: [nid %s] [rc %d] [lock %#llx]",
                  msg, libcfs_id2str(req->rq_peer), rc,
                  handle ? handle->cookie : 0);
        if (req->rq_no_reply)
@@ -635,7 +635,7 @@ static int ldlm_callback_handler(struct ptlrpc_request *req)
 
        lock = ldlm_handle2lock_long(&dlm_req->lock_handle[0], 0);
        if (!lock) {
-               CDEBUG(D_DLMTRACE, "callback on lock "LPX64" - lock "
+               CDEBUG(D_DLMTRACE, "callback on lock %#llx - lock "
                       "disappeared\n", dlm_req->lock_handle[0].cookie);
                rc = ldlm_callback_reply(req, -EINVAL);
                ldlm_callback_errmsg(req, "Operate with invalid parameter", rc,
@@ -660,7 +660,7 @@ static int ldlm_callback_handler(struct ptlrpc_request *req)
                    (lock->l_flags & LDLM_FL_BL_DONE)) ||
                    (lock->l_flags & LDLM_FL_FAILED)) {
                        LDLM_DEBUG(lock, "callback on lock "
-                                  LPX64" - lock disappeared\n",
+                                  "%#llx - lock disappeared\n",
                                   dlm_req->lock_handle[0].cookie);
                        unlock_res_and_lock(lock);
                        LDLM_LOCK_RELEASE(lock);
index 798ede7595a795c5d61f9d75633b0db990a8d25e..8867dc17532526c3532e4c431116d9c4215f9987 100644 (file)
@@ -592,7 +592,7 @@ int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
                                              LDLM_FL_NO_TIMEOUT);
        unlock_res_and_lock(lock);
 
-       CDEBUG(D_INFO, "local: %p, remote cookie: "LPX64", flags: 0x%llx\n",
+       CDEBUG(D_INFO, "local: %p, remote cookie: %#llx, flags: 0x%llx\n",
               lock, reply->lock_handle.cookie, *flags);
 
        /* If enqueue returned a blocked lock but the completion handler has
@@ -2103,8 +2103,8 @@ static int replay_lock_interpret(const struct lu_env *env,
 
        lock = ldlm_handle2lock(&aa->lock_handle);
        if (!lock) {
-               CERROR("received replay ack for unknown local cookie "LPX64
-                      " remote cookie "LPX64 " from server %s id %s\n",
+               CERROR("received replay ack for unknown local cookie %#llx"
+                      " remote cookie %#llx from server %s id %s\n",
                       aa->lock_handle.cookie, reply->lock_handle.cookie,
                       req->rq_export->exp_client_uuid.uuid,
                       libcfs_id2str(req->rq_peer));
index 344b63e7bf5ba1f79405285222eb3d2af0a0da32..ff40707e12ae6d3f919b2cfb53b83c5035834923 100644 (file)
@@ -1133,9 +1133,9 @@ ldlm_resource_get(struct ldlm_namespace *ns, struct ldlm_resource *parent,
                OBD_FAIL_TIMEOUT(OBD_FAIL_LDLM_CREATE_RESOURCE, 2);
                rc = ns->ns_lvbo->lvbo_init(res);
                if (rc < 0) {
-                       CERROR("%s: lvbo_init failed for resource "LPX64":"
-                              LPX64": rc = %d\n", ns->ns_obd->obd_name,
-                              name->name[0], name->name[1], rc);
+                       CERROR("%s: lvbo_init failed for resource %#llx:%#llx: rc = %d\n",
+                              ns->ns_obd->obd_name, name->name[0],
+                              name->name[1], rc);
                        if (res->lr_lvb_data) {
                                OBD_FREE(res->lr_lvb_data, res->lr_lvb_len);
                                res->lr_lvb_data = NULL;
index 48b1402d6cf20d7b3a2f279c7f2db77d4b2e9635..49ae207ad425222afb9f1884aaa5140f1c04d993 100644 (file)
@@ -213,8 +213,8 @@ void ll_intent_drop_lock(struct lookup_intent *it)
 
                handle.cookie = it->d.lustre.it_lock_handle;
 
-               CDEBUG(D_DLMTRACE, "releasing lock with cookie "LPX64
-                      " from it %p\n", handle.cookie, it);
+               CDEBUG(D_DLMTRACE, "releasing lock with cookie %#llx from it %p\n",
+                      handle.cookie, it);
                ldlm_lock_decref(&handle, it->d.lustre.it_lock_mode);
 
                /* bug 494: intent_release may be called multiple times, from
@@ -223,8 +223,8 @@ void ll_intent_drop_lock(struct lookup_intent *it)
                if (it->d.lustre.it_remote_lock_mode != 0) {
                        handle.cookie = it->d.lustre.it_remote_lock_handle;
 
-                       CDEBUG(D_DLMTRACE, "releasing remote lock with cookie"
-                              LPX64" from it %p\n", handle.cookie, it);
+                       CDEBUG(D_DLMTRACE, "releasing remote lock with cookie%#llx from it %p\n",
+                              handle.cookie, it);
                        ldlm_lock_decref(&handle,
                                         it->d.lustre.it_remote_lock_mode);
                        it->d.lustre.it_remote_lock_mode = 0;
index 5d2b883b1100f7558f447852987ce9cdbbccd385..efa2faf080d7bad8c9b907a2e98f733f7a5c6d83 100644 (file)
@@ -302,8 +302,8 @@ static struct page *ll_dir_page_locate(struct inode *dir, __u64 *hash,
                                *start = le64_to_cpu(dp->ldp_hash_start);
                                *end   = le64_to_cpu(dp->ldp_hash_end);
                        }
-                       LASSERTF(*start <= *hash, "start = "LPX64",end = "
-                                LPX64",hash = "LPX64"\n", *start, *end, *hash);
+                       LASSERTF(*start <= *hash, "start = %#llx,end = %#llx,hash = %#llx\n",
+                                *start, *end, *hash);
                        CDEBUG(D_VFSTRACE, "page %lu [%llu %llu], hash %llu\n",
                               offset, *start, *end, *hash);
                        if (*hash > *end) {
@@ -925,8 +925,7 @@ static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy)
                iput(inode);
                if (rc != 0) {
                        CDEBUG(D_HSM, "Could not read file data version of "
-                                     DFID" (rc = %d). Archive request ("
-                                     LPX64") could not be done.\n",
+                                     DFID" (rc = %d). Archive request (%#llx) could not be done.\n",
                                      PFID(&copy->hc_hai.hai_fid), rc,
                                      copy->hc_hai.hai_cookie);
                        hpk.hpk_flags |= HP_FLAG_RETRY;
@@ -1022,7 +1021,7 @@ static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy)
                    (copy->hc_data_version != data_version)) {
                        CDEBUG(D_HSM, "File data version mismatched. "
                              "File content was changed during archiving. "
-                              DFID", start:"LPX64" current:"LPX64"\n",
+                              DFID", start:%#llx current:%#llx\n",
                               PFID(&copy->hc_hai.hai_fid),
                               copy->hc_data_version, data_version);
                        /* File was changed, send error to cdt. Do not ask for
index e547c2b185c93fd51f809fb86b9aaff72f5ab600..fd1b75a3a569ae35e676745a3f8c5a061c93c002 100644 (file)
@@ -140,7 +140,7 @@ static int ll_close_inode_openhandle(struct obd_export *md_exp,
                 * XXX: in case of LMV, is this correct to access
                 * ->exp_handle?
                 */
-               CERROR("Invalid MDC connection handle "LPX64"\n",
+               CERROR("Invalid MDC connection handle %#llx\n",
                       ll_i2mdexp(inode)->exp_handle.h_cookie);
                GOTO(out, rc = 0);
        }
index ade58e8a41e37ea9406c2a602d7135724edabaab..023c40518c6dd07ba73f62a48790dcfc27772dda 100644 (file)
@@ -359,7 +359,7 @@ struct obd_capa *ll_osscapa_get(struct inode *inode, __u64 opc)
                ocapa = NULL;
 
                if (atomic_read(&ll_capa_debug)) {
-                       CERROR("no capability for "DFID" opc "LPX64"\n",
+                       CERROR("no capability for "DFID" opc %#llx\n",
                               PFID(&lli->lli_fid), opc);
                        atomic_set(&ll_capa_debug, 0);
                }
index f9b4526d1217d08a02435dfa9dd9ae31284079e6..faf79408e7b39370d4e89f6bc657ffccd465734c 100644 (file)
@@ -1432,7 +1432,7 @@ static inline void ll_set_lock_data(struct obd_export *exp, struct inode *inode,
                if (it->d.lustre.it_remote_lock_mode) {
                        handle.cookie = it->d.lustre.it_remote_lock_handle;
                        CDEBUG(D_DLMTRACE, "setting l_data to inode %p"
-                              "(%lu/%u) for remote lock "LPX64"\n", inode,
+                              "(%lu/%u) for remote lock %#llx\n", inode,
                               inode->i_ino, inode->i_generation,
                               handle.cookie);
                        md_set_lock_data(exp, &handle.cookie, inode, NULL);
@@ -1441,7 +1441,7 @@ static inline void ll_set_lock_data(struct obd_export *exp, struct inode *inode,
                handle.cookie = it->d.lustre.it_lock_handle;
 
                CDEBUG(D_DLMTRACE, "setting l_data to inode %p (%lu/%u)"
-                      " for lock "LPX64"\n", inode, inode->i_ino,
+                      " for lock %#llx\n", inode, inode->i_ino,
                       inode->i_generation, handle.cookie);
 
                md_set_lock_data(exp, &handle.cookie, inode,
index ead13bc2e9355d6ffc94389ddd9c91ee8002e1fa..e0d8f15fe4fd24c9051961fb8f8f40a53298ed38 100644 (file)
@@ -426,7 +426,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
        if (sbi->ll_flags & LL_SBI_RMT_CLIENT)
                data->ocd_connect_flags |= OBD_CONNECT_RMT_CLIENT_FORCE;
 
-       CDEBUG(D_RPCTRACE, "ocd_connect_flags: "LPX64" ocd_version: %d "
+       CDEBUG(D_RPCTRACE, "ocd_connect_flags: %#llx ocd_version: %d "
               "ocd_grant: %d\n", data->ocd_connect_flags,
               data->ocd_version, data->ocd_grant);
 
@@ -1999,7 +1999,7 @@ void ll_umount_begin(struct super_block *sb)
 
        obd = class_exp2obd(sbi->ll_md_exp);
        if (obd == NULL) {
-               CERROR("Invalid MDC connection handle "LPX64"\n",
+               CERROR("Invalid MDC connection handle %#llx\n",
                       sbi->ll_md_exp->exp_handle.h_cookie);
                return;
        }
@@ -2007,7 +2007,7 @@ void ll_umount_begin(struct super_block *sb)
 
        obd = class_exp2obd(sbi->ll_dt_exp);
        if (obd == NULL) {
-               CERROR("Invalid LOV connection handle "LPX64"\n",
+               CERROR("Invalid LOV connection handle %#llx\n",
                       sbi->ll_dt_exp->exp_handle.h_cookie);
                return;
        }
index d79e96c92daa86bfef5c6c150208a4e3f7f0a35c..0dc7173bbd417feb967c9cca1440510c95798151 100644 (file)
@@ -105,7 +105,7 @@ static int ll_set_inode(struct inode *inode, void *opaque)
        lli->lli_fid = body->fid1;
        if (unlikely(!(body->valid & OBD_MD_FLTYPE))) {
                CERROR("Can not initialize inode "DFID" without object type: "
-                      "valid = "LPX64"\n", PFID(&lli->lli_fid), body->valid);
+                      "valid = %#llx\n", PFID(&lli->lli_fid), body->valid);
                return -EINVAL;
        }
 
index b1b0effee00e250abc3c68f95284b2251920ff09..8289bcc5f8e187ec850694e4861a85d76e5f1cf4 100644 (file)
@@ -66,8 +66,8 @@ int lmv_fld_lookup(struct lmv_obd *lmv,
        rc = fld_client_lookup(&lmv->lmv_fld, fid_seq(fid), mds,
                               LU_SEQ_RANGE_MDT, NULL);
        if (rc) {
-               CERROR("Error while looking for mds number. Seq "LPX64
-                      ", err = %d\n", fid_seq(fid), rc);
+               CERROR("Error while looking for mds number. Seq %#llx, err = %d\n",
+                      fid_seq(fid), rc);
                return rc;
        }
 
index 56bd17edfdfe0ea97c564b86b745a74d161476b5..bb3e8c7c0aa6bbe3f3f3f6cec47cfb2e53a6d4cb 100644 (file)
@@ -90,7 +90,7 @@ static int lmv_set_mdc_active(struct lmv_obd *lmv, struct obd_uuid *uuid,
                if (tgt == NULL || tgt->ltd_exp == NULL)
                        continue;
 
-               CDEBUG(D_INFO, "Target idx %d is %s conn "LPX64"\n", i,
+               CDEBUG(D_INFO, "Target idx %d is %s conn %#llx\n", i,
                       tgt->ltd_uuid.uuid, tgt->ltd_exp->exp_handle.h_cookie);
 
                if (obd_uuid_equals(uuid, &tgt->ltd_uuid))
@@ -2173,7 +2173,7 @@ static int lmv_readpage(struct obd_export *exp, struct md_op_data *op_data,
        if (rc)
                return rc;
 
-       CDEBUG(D_INODE, "READPAGE at "LPX64" from "DFID"\n",
+       CDEBUG(D_INODE, "READPAGE at %#llx from "DFID"\n",
               offset, PFID(&op_data->op_fid1));
 
        tgt = lmv_find_target(lmv, &op_data->op_fid1);
@@ -2315,7 +2315,7 @@ static int lmv_get_info(const struct lu_env *env, struct obd_export *exp,
 
        obd = class_exp2obd(exp);
        if (obd == NULL) {
-               CDEBUG(D_IOCTL, "Invalid client cookie "LPX64"\n",
+               CDEBUG(D_IOCTL, "Invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
@@ -2381,7 +2381,7 @@ int lmv_set_info_async(const struct lu_env *env, struct obd_export *exp,
 
        obd = class_exp2obd(exp);
        if (obd == NULL) {
-               CDEBUG(D_IOCTL, "Invalid client cookie "LPX64"\n",
+               CDEBUG(D_IOCTL, "Invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
index 1c304b0d19e711ab92d53f66184b5273c4e9162c..2401ca8725074bc7fc3da189312662f4e00feb57 100644 (file)
@@ -348,7 +348,7 @@ const struct lsm_operations lsm_v3_ops = {
 
 void dump_lsm(unsigned int level, const struct lov_stripe_md *lsm)
 {
-       CDEBUG(level, "lsm %p, objid "DOSTID", maxbytes "LPX64", magic 0x%08X,"
+       CDEBUG(level, "lsm %p, objid "DOSTID", maxbytes %#llx, magic 0x%08X,"
               " stripe_size %u, stripe_count %u, refc: %d,"
               " layout_gen %u, pool ["LOV_POOLNAMEF"]\n", lsm,
               POSTID(&lsm->lsm_oi), lsm->lsm_maxbytes, lsm->lsm_magic,
index 643eada816e4ee5fac82718607e1204914289e0d..065561d29661389da39b91f9535e59b9f25e5b53 100644 (file)
@@ -382,7 +382,7 @@ static int lov_set_osc_active(struct obd_device *obd, struct obd_uuid *uuid,
                if (!tgt->ltd_exp)
                        continue;
 
-               CDEBUG(D_INFO, "lov idx %d is %s conn "LPX64"\n",
+               CDEBUG(D_INFO, "lov idx %d is %s conn %#llx\n",
                       index, obd_uuid2str(&tgt->ltd_uuid),
                       tgt->ltd_exp->exp_handle.h_cookie);
                if (obd_uuid_equals(uuid, &tgt->ltd_uuid))
@@ -1462,7 +1462,7 @@ static int lov_sync(const struct lu_env *env, struct obd_export *exp,
        if (rc)
                return rc;
 
-       CDEBUG(D_INFO, "fsync objid "DOSTID" ["LPX64", "LPX64"]\n",
+       CDEBUG(D_INFO, "fsync objid "DOSTID" [%#llx, %#llx]\n",
               POSTID(&set->set_oi->oi_oa->o_oi), start, end);
 
        list_for_each(pos, &set->set_list) {
index 606f644565aa38feb44af2e2494512ed23ed42c6..185fe66c18a38697784e4537d777df472ee25e55 100644 (file)
@@ -670,7 +670,7 @@ void mdc_replay_open(struct ptlrpc_request *req)
                LASSERT(och->och_magic == OBD_CLIENT_HANDLE_MAGIC);
 
                file_fh = &och->och_fh;
-               CDEBUG(D_HA, "updating handle from "LPX64" to "LPX64"\n",
+               CDEBUG(D_HA, "updating handle from %#llx to %#llx\n",
                       file_fh->cookie, body->handle.cookie);
                old = *file_fh;
                *file_fh = body->handle;
index 5108f0daedf128cab35d5f345efef7e3424ad75e..fc638907af3a21498602b00be66a43fbe211fa67 100644 (file)
@@ -83,7 +83,7 @@ static int mgc_name2resid(char *name, int len, struct ldlm_res_id *res_id,
                LBUG();
        }
        res_id->name[1] = cpu_to_le64(resname);
-       CDEBUG(D_MGC, "log %s to resid "LPX64"/"LPX64" (%.8s)\n", name,
+       CDEBUG(D_MGC, "log %s to resid %#llx/%#llx (%.8s)\n", name,
               res_id->name[0], res_id->name[1], (char *)&res_id->name[0]);
        return 0;
 }
@@ -1011,7 +1011,7 @@ static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm,
        int short_limit = cld_is_sptlrpc(cld);
        int rc;
 
-       CDEBUG(D_MGC, "Enqueue for %s (res "LPX64")\n", cld->cld_logname,
+       CDEBUG(D_MGC, "Enqueue for %s (res %#llx)\n", cld->cld_logname,
               cld->cld_resid.name[0]);
 
        /* We need a callback for every lockholder, so don't try to
index 69eca4ca629729fa4938242f8d13ab9a95489eac..5af61a8c0b85855b3e32fff37873087ca7f8520b 100644 (file)
@@ -411,7 +411,7 @@ void _debug_capa(struct lustre_capa *c,
        va_list args;
        va_start(args, fmt);
        libcfs_debug_vmsg2(msgdata, fmt, args,
-                          " capability@%p fid "DFID" opc "LPX64" uid %llu"
+                          " capability@%p fid "DFID" opc %#llx uid %llu"
                           " gid %llu flags %u alg %d keyid %u timeout %u "
                           "expiry %u\n", c, PFID(capa_fid(c)), capa_opc(c),
                           capa_uid(c), capa_gid(c), capa_flags(c),
index e8447e6c21948414537ad3c1f5137d35a163380e..df6a72fc24d0ff3e32ed4502096c78522a8d563e 100644 (file)
@@ -420,45 +420,45 @@ int obd_init_checks(void)
        char buf[64];
        int len, ret = 0;
 
-       CDEBUG(D_INFO, "LPU64=%s, LPD64=%s, LPX64=%s\n", "%llu", "%lld", LPX64);
+       CDEBUG(D_INFO, "LPU64=%s, LPD64=%s, LPX64=%s\n", "%llu", "%lld", "%#llx");
 
-       CDEBUG(D_INFO, "OBD_OBJECT_EOF = "LPX64"\n", (__u64)OBD_OBJECT_EOF);
+       CDEBUG(D_INFO, "OBD_OBJECT_EOF = %#llx\n", (__u64)OBD_OBJECT_EOF);
 
        u64val = OBD_OBJECT_EOF;
-       CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = "LPX64"\n", u64val);
+       CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = %#llx\n", u64val);
        if (u64val != OBD_OBJECT_EOF) {
-               CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
+               CERROR("__u64 %#llx(%d) != 0xffffffffffffffff\n",
                       u64val, (int)sizeof(u64val));
                ret = -EINVAL;
        }
-       len = snprintf(buf, sizeof(buf), LPX64, u64val);
+       len = snprintf(buf, sizeof(buf), "%#llx", u64val);
        if (len != 18) {
                CWARN("LPX64 wrong length! strlen(%s)=%d != 18\n", buf, len);
                ret = -EINVAL;
        }
 
        div64val = OBD_OBJECT_EOF;
-       CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = "LPX64"\n", u64val);
+       CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = %#llx\n", u64val);
        if (u64val != OBD_OBJECT_EOF) {
-               CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
+               CERROR("__u64 %#llx(%d) != 0xffffffffffffffff\n",
                       u64val, (int)sizeof(u64val));
                ret = -EOVERFLOW;
        }
        if (u64val >> 8 != OBD_OBJECT_EOF >> 8) {
-               CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
+               CERROR("__u64 %#llx(%d) != 0xffffffffffffffff\n",
                       u64val, (int)sizeof(u64val));
                return -EOVERFLOW;
        }
        if (do_div(div64val, 256) != (u64val & 255)) {
-               CERROR("do_div("LPX64",256) != %llu\n", u64val, u64val &255);
+               CERROR("do_div(%#llx,256) != %llu\n", u64val, u64val &255);
                return -EOVERFLOW;
        }
        if (u64val >> 8 != div64val) {
-               CERROR("do_div("LPX64",256) %llu != %llu\n",
+               CERROR("do_div(%#llx,256) %llu != %llu\n",
                       u64val, div64val, u64val >> 8);
                return -EOVERFLOW;
        }
-       len = snprintf(buf, sizeof(buf), LPX64, u64val);
+       len = snprintf(buf, sizeof(buf), "%#llx", u64val);
        if (len != 18) {
                CWARN("LPX64 wrong length! strlen(%s)=%d != 18\n", buf, len);
                ret = -EINVAL;
index 97eceb11b89080d66c3d33e13e123eebb9dd6a96..e8aa42beb3c7ac38b3e2d3fdc3e27945c740bde7 100644 (file)
@@ -84,25 +84,25 @@ int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id)
        ne_off = le64_to_cpu (off);
        id = le64_to_cpu (id);
        if (memcmp(addr, (char *)&ne_off, LPDS)) {
-               CDEBUG(D_ERROR, "%s: id "LPX64" offset %llu off: "LPX64" != "
-                      LPX64"\n", who, id, off, *(__u64 *)addr, ne_off);
+               CDEBUG(D_ERROR, "%s: id %#llx offset %llu off: %#llx != %#llx\n",
+                      who, id, off, *(__u64 *)addr, ne_off);
                err = -EINVAL;
        }
        if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
-               CDEBUG(D_ERROR, "%s: id "LPX64" offset %llu id: "LPX64" != "LPX64"\n",
+               CDEBUG(D_ERROR, "%s: id %#llx offset %llu id: %#llx != %#llx\n",
                       who, id, off, *(__u64 *)(addr + LPDS), id);
                err = -EINVAL;
        }
 
        addr += end - LPDS - LPDS;
        if (memcmp(addr, (char *)&ne_off, LPDS)) {
-               CDEBUG(D_ERROR, "%s: id "LPX64" offset %llu end off: "LPX64" != "
-                      LPX64"\n", who, id, off, *(__u64 *)addr, ne_off);
+               CDEBUG(D_ERROR, "%s: id %#llx offset %llu end off: %#llx != %#llx\n",
+                      who, id, off, *(__u64 *)addr, ne_off);
                err = -EINVAL;
        }
        if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
-               CDEBUG(D_ERROR, "%s: id "LPX64" offset %llu end id: "LPX64" != "
-                      LPX64"\n", who, id, off, *(__u64 *)(addr + LPDS), id);
+               CDEBUG(D_ERROR, "%s: id %#llx offset %llu end id: %#llx != %#llx\n",
+                      who, id, off, *(__u64 *)(addr + LPDS), id);
                err = -EINVAL;
        }
 
index f054dd6130ce8ddc073cc4f1ea6f93ac16db6bcc..504c59aabaefd48566be8abdfca3931f81c8823e 100644 (file)
@@ -699,7 +699,7 @@ struct obd_export *class_conn2export(struct lustre_handle *conn)
                return NULL;
        }
 
-       CDEBUG(D_INFO, "looking for export cookie "LPX64"\n", conn->cookie);
+       CDEBUG(D_INFO, "looking for export cookie %#llx\n", conn->cookie);
        export = class_handle2object(conn->cookie);
        return export;
 }
@@ -1113,7 +1113,7 @@ int class_connect(struct lustre_handle *conn, struct obd_device *obd,
        conn->cookie = export->exp_handle.h_cookie;
        class_export_put(export);
 
-       CDEBUG(D_IOCTL, "connect: client %s, cookie "LPX64"\n",
+       CDEBUG(D_IOCTL, "connect: client %s, cookie %#llx\n",
               cluuid->uuid, conn->cookie);
        return 0;
 }
@@ -1190,7 +1190,7 @@ int class_disconnect(struct obd_export *export)
                GOTO(no_disconn, already_disconnected);
        }
 
-       CDEBUG(D_IOCTL, "disconnect: cookie "LPX64"\n",
+       CDEBUG(D_IOCTL, "disconnect: cookie %#llx\n",
               export->exp_handle.h_cookie);
 
        if (!hlist_unhashed(&export->exp_nid_hash))
index 35f077c8286d4934f359b20d2caa0a0d42391f99..bb15202f1aae7a7e399d146a583b6480986b40df 100644 (file)
@@ -151,7 +151,7 @@ void obdo_refresh_inode(struct inode *dst, struct obdo *src, obd_flag valid)
 
        if (valid & (OBD_MD_FLCTIME | OBD_MD_FLMTIME))
                CDEBUG(D_INODE,
-                      "valid "LPX64", cur time %lu/%lu, new %llu/%llu\n",
+                      "valid %#llx, cur time %lu/%lu, new %llu/%llu\n",
                       src->o_valid, LTIME_S(dst->i_mtime),
                       LTIME_S(dst->i_ctime), src->o_mtime, src->o_ctime);
 
@@ -190,7 +190,7 @@ void obdo_to_inode(struct inode *dst, struct obdo *src, obd_flag valid)
 
        if (valid & (OBD_MD_FLCTIME | OBD_MD_FLMTIME))
                CDEBUG(D_INODE,
-                      "valid "LPX64", cur time %lu/%lu, new %llu/%llu\n",
+                      "valid %#llx, cur time %lu/%lu, new %llu/%llu\n",
                       src->o_valid, LTIME_S(dst->i_mtime),
                       LTIME_S(dst->i_ctime), src->o_mtime, src->o_ctime);
 
index 1a2d70b4704b60614f21372eea927b99c045e232..b3247fb7a35aa5ca68dfe7259d7a1454e336cfc6 100644 (file)
@@ -56,7 +56,7 @@ static void print_llogd_body(struct llogd_body *d)
        CDEBUG(D_OTHER, "\tlgd_index: %#x\n", d->lgd_index);
        CDEBUG(D_OTHER, "\tlgd_saved_index: %#x\n", d->lgd_saved_index);
        CDEBUG(D_OTHER, "\tlgd_len: %#x\n", d->lgd_len);
-       CDEBUG(D_OTHER, "\tlgd_cur_offset: "LPX64"\n", d->lgd_cur_offset);
+       CDEBUG(D_OTHER, "\tlgd_cur_offset: %#llx\n", d->lgd_cur_offset);
 }
 
 void lustre_swab_lu_fid(struct lu_fid *fid)
@@ -284,7 +284,7 @@ static void print_llog_hdr(struct llog_log_hdr *h)
        CDEBUG(D_OTHER, "\tllh_hdr.lrh_index: %#x\n", h->llh_hdr.lrh_index);
        CDEBUG(D_OTHER, "\tllh_hdr.lrh_len: %#x\n", h->llh_hdr.lrh_len);
        CDEBUG(D_OTHER, "\tllh_hdr.lrh_type: %#x\n", h->llh_hdr.lrh_type);
-       CDEBUG(D_OTHER, "\tllh_timestamp: "LPX64"\n", h->llh_timestamp);
+       CDEBUG(D_OTHER, "\tllh_timestamp: %#llx\n", h->llh_timestamp);
        CDEBUG(D_OTHER, "\tllh_count: %#x\n", h->llh_count);
        CDEBUG(D_OTHER, "\tllh_bitmap_offset: %#x\n", h->llh_bitmap_offset);
        CDEBUG(D_OTHER, "\tllh_flags: %#x\n", h->llh_flags);
index d81443dad829c5fc5e7dd2a13285ca4dff991f5f..78190225ac7a89a16866dd6d34d5eea2c7d58ed6 100644 (file)
@@ -670,7 +670,7 @@ int lastid_compat_check(const struct lu_env *env, struct dt_device *dev,
                return PTR_ERR(root);
 
        /* find old last_id file */
-       snprintf(dti->dti_buf, sizeof(dti->dti_buf), "seq-"LPX64"-lastid",
+       snprintf(dti->dti_buf, sizeof(dti->dti_buf), "seq-%#llx-lastid",
                 lastid_seq);
        rc = dt_lookup_dir(env, root, dti->dti_buf, &dti->dti_fid);
        lu_object_put_nocache(env, &root->do_lu);
@@ -693,7 +693,7 @@ int lastid_compat_check(const struct lu_env *env, struct dt_device *dev,
        } else if (rc < 0) {
                return rc;
        } else {
-               CDEBUG(D_INFO, "Found old lastid file for sequence "LPX64"\n",
+               CDEBUG(D_INFO, "Found old lastid file for sequence %#llx\n",
                       lastid_seq);
                o = ls_locate(env, ls, &dti->dti_fid);
                if (IS_ERR(o))
@@ -709,12 +709,12 @@ int lastid_compat_check(const struct lu_env *env, struct dt_device *dev,
        dt_read_unlock(env, o);
        lu_object_put_nocache(env, &o->do_lu);
        if (rc == 0 && le32_to_cpu(losd.lso_magic) != LOS_MAGIC) {
-               CERROR("%s: wrong content of seq-"LPX64"-lastid file, magic %x\n",
+               CERROR("%s: wrong content of seq-%#llx-lastid file, magic %x\n",
                       o->do_lu.lo_dev->ld_obd->obd_name, lastid_seq,
                       le32_to_cpu(losd.lso_magic));
                return -EINVAL;
        } else if (rc < 0) {
-               CERROR("%s: failed to read seq-"LPX64"-lastid: rc = %d\n",
+               CERROR("%s: failed to read seq-%#llx-lastid: rc = %d\n",
                       o->do_lu.lo_dev->ld_obd->obd_name, lastid_seq, rc);
                return rc;
        }
index 7ba09e0ff264de830b6f2472108fcb8ba984888e..005bcbabc5be78dda217c87e72b1ab59e4fc33bd 100644 (file)
@@ -116,7 +116,7 @@ int obd_connect_flags2str(char *page, int count, __u64 flags, char *sep)
        }
        if (flags & ~(mask - 1))
                ret += snprintf(page + ret, count - ret,
-                               "%sunknown flags "LPX64,
+                               "%sunknown flags %#llx",
                                ret ? sep : "", flags & ~(mask - 1));
        return ret;
 }
@@ -667,7 +667,7 @@ static void obd_connect_seq_flags2str(struct seq_file *m, __u64 flags, char *sep
                }
        }
        if (flags & ~(mask - 1))
-               seq_printf(m, "%sunknown flags "LPX64,
+               seq_printf(m, "%sunknown flags %#llx",
                                first ? sep : "", flags & ~(mask - 1));
 }
 
@@ -908,7 +908,7 @@ int lprocfs_rd_connect_flags(struct seq_file *m, void *data)
 
        LPROCFS_CLIMP_CHECK(obd);
        flags = obd->u.cli.cl_import->imp_connect_data.ocd_connect_flags;
-       seq_printf(m, "flags="LPX64"\n", flags);
+       seq_printf(m, "flags=%#llx\n", flags);
        obd_connect_seq_flags2str(m, flags, "\n");
        seq_printf(m, "\n");
        LPROCFS_CLIMP_EXIT(obd);
index 0bcefa79fb7751a2e5bbb0443cec868a49cbb846..2010463429b13973d88c0494039b3845bb09d45f 100644 (file)
@@ -97,7 +97,7 @@ void class_handle_hash(struct portals_handle *h,
        h->h_in = 1;
        spin_unlock(&bucket->lock);
 
-       CDEBUG(D_INFO, "added object %p with handle "LPX64" to hash\n",
+       CDEBUG(D_INFO, "added object %p with handle %#llx to hash\n",
               h, h->h_cookie);
 }
 EXPORT_SYMBOL(class_handle_hash);
@@ -105,12 +105,12 @@ EXPORT_SYMBOL(class_handle_hash);
 static void class_handle_unhash_nolock(struct portals_handle *h)
 {
        if (list_empty(&h->h_link)) {
-               CERROR("removing an already-removed handle ("LPX64")\n",
+               CERROR("removing an already-removed handle (%#llx)\n",
                       h->h_cookie);
                return;
        }
 
-       CDEBUG(D_INFO, "removing object %p with handle "LPX64" from hash\n",
+       CDEBUG(D_INFO, "removing object %p with handle %#llx from hash\n",
               h, h->h_cookie);
 
        spin_lock(&h->h_lock);
@@ -230,7 +230,7 @@ static int cleanup_all_handles(void)
 
                spin_lock(&handle_hash[i].lock);
                list_for_each_entry_rcu(h, &(handle_hash[i].head), h_link) {
-                       CERROR("force clean handle "LPX64" addr %p ops %p\n",
+                       CERROR("force clean handle %#llx addr %p ops %p\n",
                               h->h_cookie, h, h->h_ops);
 
                        class_handle_unhash_nolock(h);
index f7b6e1657fc99ba17b4a25aac7cfb35c623f6dff..3acb1a86cfc73955e2dfd0a4e7102cff7dfb9c28 100644 (file)
@@ -1093,9 +1093,9 @@ int class_process_config(struct lustre_cfg *lcfg)
                GOTO(out, err);
        }
        case LCFG_ADD_UUID: {
-               CDEBUG(D_IOCTL, "adding mapping from uuid %s to nid "LPX64
-                      " (%s)\n", lustre_cfg_string(lcfg, 1),
-                      lcfg->lcfg_nid, libcfs_nid2str(lcfg->lcfg_nid));
+               CDEBUG(D_IOCTL, "adding mapping from uuid %s to nid %#llx (%s)\n",
+                      lustre_cfg_string(lcfg, 1), lcfg->lcfg_nid,
+                      libcfs_nid2str(lcfg->lcfg_nid));
 
                err = class_add_uuid(lustre_cfg_string(lcfg, 1), lcfg->lcfg_nid);
                GOTO(out, err);
@@ -1614,7 +1614,7 @@ int class_config_parse_rec(struct llog_rec_hdr *rec, char *buf, int size)
                ptr += snprintf(ptr, end-ptr, "num=%#08x ", lcfg->lcfg_num);
 
        if (lcfg->lcfg_nid)
-               ptr += snprintf(ptr, end-ptr, "nid=%s("LPX64")\n     ",
+               ptr += snprintf(ptr, end-ptr, "nid=%s(%#llx)\n     ",
                                libcfs_nid2str(lcfg->lcfg_nid),
                                lcfg->lcfg_nid);
 
index be118ba728911eca1093de3291c6764362222571..c9fa36b179199bb9f38fee7722b387cca01330dd 100644 (file)
@@ -117,7 +117,7 @@ EXPORT_SYMBOL(obdo_from_inode);
 
 void obdo_cpy_md(struct obdo *dst, struct obdo *src, obd_flag valid)
 {
-       CDEBUG(D_INODE, "src obdo "DOSTID" valid "LPX64", dst obdo "DOSTID"\n",
+       CDEBUG(D_INODE, "src obdo "DOSTID" valid %#llx, dst obdo "DOSTID"\n",
               POSTID(&src->o_oi), src->o_valid, POSTID(&dst->o_oi));
        if (valid & OBD_MD_FLATIME)
                dst->o_atime = src->o_atime;
@@ -252,7 +252,7 @@ void iattr_from_obdo(struct iattr *attr, struct obdo *oa, obd_flag valid)
        valid &= oa->o_valid;
 
        if (valid & (OBD_MD_FLCTIME | OBD_MD_FLMTIME))
-               CDEBUG(D_INODE, "valid "LPX64", new time %llu/%llu\n",
+               CDEBUG(D_INODE, "valid %#llx, new time %llu/%llu\n",
                       oa->o_valid, oa->o_mtime, oa->o_ctime);
 
        attr->ia_valid = 0;
index eae1cca9956ad963f9469508f84cbf2f7a7eff0c..f3b7429add029f338a09a21c6b8c84347b561352 100644 (file)
@@ -120,7 +120,7 @@ static int echo_create(const struct lu_env *env, struct obd_export *exp,
        struct obd_device *obd = class_exp2obd(exp);
 
        if (!obd) {
-               CERROR("invalid client cookie "LPX64"\n",
+               CERROR("invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
@@ -131,7 +131,7 @@ static int echo_create(const struct lu_env *env, struct obd_export *exp,
        }
 
        if (!(oa->o_valid & OBD_MD_FLTYPE)) {
-               CERROR("invalid o_valid "LPX64"\n", oa->o_valid);
+               CERROR("invalid o_valid %#llx\n", oa->o_valid);
                return -EINVAL;
        }
 
@@ -150,13 +150,13 @@ static int echo_destroy(const struct lu_env *env, struct obd_export *exp,
        struct obd_device *obd = class_exp2obd(exp);
 
        if (!obd) {
-               CERROR("invalid client cookie "LPX64"\n",
+               CERROR("invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
 
        if (!(oa->o_valid & OBD_MD_FLID)) {
-               CERROR("obdo missing FLID valid flag: "LPX64"\n", oa->o_valid);
+               CERROR("obdo missing FLID valid flag: %#llx\n", oa->o_valid);
                return -EINVAL;
        }
 
@@ -176,13 +176,13 @@ static int echo_getattr(const struct lu_env *env, struct obd_export *exp,
        obd_id id = ostid_id(&oinfo->oi_oa->o_oi);
 
        if (!obd) {
-               CERROR("invalid client cookie "LPX64"\n",
+               CERROR("invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
 
        if (!(oinfo->oi_oa->o_valid & OBD_MD_FLID)) {
-               CERROR("obdo missing FLID valid flag: "LPX64"\n",
+               CERROR("obdo missing FLID valid flag: %#llx\n",
                       oinfo->oi_oa->o_valid);
                return -EINVAL;
        }
@@ -200,13 +200,13 @@ static int echo_setattr(const struct lu_env *env, struct obd_export *exp,
        struct obd_device *obd = class_exp2obd(exp);
 
        if (!obd) {
-               CERROR("invalid client cookie "LPX64"\n",
+               CERROR("invalid client cookie %#llx\n",
                       exp->exp_handle.h_cookie);
                return -EINVAL;
        }
 
        if (!(oinfo->oi_oa->o_valid & OBD_MD_FLID)) {
-               CERROR("obdo missing FLID valid flag: "LPX64"\n",
+               CERROR("obdo missing FLID valid flag: %#llx\n",
                       oinfo->oi_oa->o_valid);
                return -EINVAL;
        }
index 32d569aeb64b849e051eabac188356631d7e73b4..b3428d972545230c83e9aa64253622b001511d42 100644 (file)
@@ -1228,7 +1228,7 @@ static int cl_echo_cancel0(struct lu_env *env, struct echo_device *ed,
        spin_lock(&ec->ec_lock);
        list_for_each (el, &ec->ec_locks) {
                ecl = list_entry (el, struct echo_lock, el_chain);
-               CDEBUG(D_INFO, "ecl: %p, cookie: "LPX64"\n", ecl, ecl->el_cookie);
+               CDEBUG(D_INFO, "ecl: %p, cookie: %#llx\n", ecl, ecl->el_cookie);
                found = (ecl->el_cookie == cookie);
                if (found) {
                        if (atomic_dec_and_test(&ecl->el_refcount))
@@ -1540,7 +1540,7 @@ int echo_attr_get_complex(const struct lu_env *env, struct md_object *next,
 #endif
 out:
        ma->ma_need = need;
-       CDEBUG(D_INODE, "after getattr rc = %d, ma_valid = "LPX64" ma_lmm=%p\n",
+       CDEBUG(D_INODE, "after getattr rc = %d, ma_valid = %#llx ma_lmm=%p\n",
               rc, ma->ma_valid, ma->ma_lmm);
        return rc;
 }
@@ -2408,7 +2408,7 @@ static int echo_client_page_debug_check(struct lov_stripe_md *lsm,
                                        addr + delta, OBD_ECHO_BLOCK_SIZE,
                                        stripe_off, stripe_id);
                if (rc2 != 0) {
-                       CERROR ("Error in echo object "LPX64"\n", id);
+                       CERROR ("Error in echo object %#llx\n", id);
                        rc = rc2;
                }
        }
@@ -2703,7 +2703,7 @@ echo_client_enqueue(struct obd_export *exp, struct obdo *oa,
        rc = cl_echo_enqueue(eco, offset, end, mode, &ulh->cookie);
        if (rc == 0) {
                oa->o_valid |= OBD_MD_FLHANDLE;
-               CDEBUG(D_INFO, "Cookie is "LPX64"\n", ulh->cookie);
+               CDEBUG(D_INFO, "Cookie is %#llx\n", ulh->cookie);
        }
        echo_put_object(eco);
        return rc;
@@ -2718,7 +2718,7 @@ echo_client_cancel(struct obd_export *exp, struct obdo *oa)
        if ((oa->o_valid & OBD_MD_FLHANDLE) == 0)
                return -EINVAL;
 
-       CDEBUG(D_INFO, "Cookie is "LPX64"\n", cookie);
+       CDEBUG(D_INFO, "Cookie is %#llx\n", cookie);
        return cl_echo_cancel(ed, cookie);
 }
 
@@ -3084,7 +3084,7 @@ static int echo_client_disconnect(struct obd_export *exp)
                rc = obd_cancel(ec->ec_exp, ecl->ecl_object->eco_lsm,
                                 ecl->ecl_mode, &ecl->ecl_lock_handle);
 
-               CDEBUG (D_INFO, "Cancel lock on object "LPX64" on disconnect "
+               CDEBUG (D_INFO, "Cancel lock on object %#llx on disconnect "
                        "(%d)\n", ecl->ecl_object->eco_id, rc);
 
                echo_put_object (ecl->ecl_object);
index 7dda1ac91b0c6b06afb521171fbf3a2a2436dce3..8138856fda8c62caa72282c2d0996baa242756e1 100644 (file)
@@ -1399,7 +1399,7 @@ static int osc_lock_print(const struct lu_env *env, void *cookie,
        /*
         * XXX print ldlm lock and einfo properly.
         */
-       (*p)(env, cookie, "%p %#16llx "LPX64" %d %p ",
+       (*p)(env, cookie, "%p %#16llx %#llx %d %p ",
             lock->ols_lock, lock->ols_flags, lock->ols_handle.cookie,
             lock->ols_state, lock->ols_owner);
        osc_lvb_print(env, cookie, p, &lock->ols_lvb);
index 47ff24371789e63b9ed7718a841709750881af11..5028e77bf8bf25fe0bb85294fbf2a52cb509de57 100644 (file)
@@ -1492,7 +1492,7 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, int rc)
            body->oa.o_valid & (OBD_MD_FLUSRQUOTA | OBD_MD_FLGRPQUOTA)) {
                unsigned int qid[MAXQUOTAS] = { body->oa.o_uid, body->oa.o_gid };
 
-               CDEBUG(D_QUOTA, "setdq for [%u %u] with valid "LPX64", flags %x\n",
+               CDEBUG(D_QUOTA, "setdq for [%u %u] with valid %#llx, flags %x\n",
                       body->oa.o_uid, body->oa.o_gid, body->oa.o_valid,
                       body->oa.o_flags);
                osc_quota_setdq(cli, qid, body->oa.o_valid, body->oa.o_flags);
@@ -3260,7 +3260,7 @@ static int osc_reconnect(const struct lu_env *env,
                cli->cl_lost_grant = 0;
                client_obd_list_unlock(&cli->cl_loi_list_lock);
 
-               CDEBUG(D_RPCTRACE, "ocd_connect_flags: "LPX64" ocd_version: %d"
+               CDEBUG(D_RPCTRACE, "ocd_connect_flags: %#llx ocd_version: %d"
                       " ocd_grant: %d, lost: %ld.\n", data->ocd_connect_flags,
                       data->ocd_version, data->ocd_grant, lost_grant);
        }
index b680caf246f05282c79bfac5c36a1ca8c08aaf8e..4146e8b29a6d4edfebcd69a087a576a275da41cf 100644 (file)
@@ -1181,7 +1181,7 @@ static void ptlrpc_save_versions(struct ptlrpc_request *req)
 
        LASSERT(versions);
        lustre_msg_set_versions(reqmsg, versions);
-       CDEBUG(D_INFO, "Client save versions ["LPX64"/"LPX64"]\n",
+       CDEBUG(D_INFO, "Client save versions [%#llx/%#llx]\n",
               versions[0], versions[1]);
 }
 
@@ -2723,7 +2723,7 @@ static int ptlrpc_replay_interpret(const struct lu_env *env,
                LASSERTF(lustre_msg_get_transno(req->rq_reqmsg) ==
                         lustre_msg_get_transno(req->rq_repmsg) ||
                         lustre_msg_get_transno(req->rq_repmsg) == 0,
-                        LPX64"/"LPX64"\n",
+                        "%#llx/%#llx\n",
                         lustre_msg_get_transno(req->rq_reqmsg),
                         lustre_msg_get_transno(req->rq_repmsg));
        }
index a2affa7b0a3ee23c317cf17a7f4320d0ab640deb..f522fc5d3a93fb8868fb41a4b929f8fc654b3dbd 100644 (file)
@@ -842,8 +842,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
        /* check that server granted subset of flags we asked for. */
        if ((ocd->ocd_connect_flags & imp->imp_connect_flags_orig) !=
            ocd->ocd_connect_flags) {
-               CERROR("%s: Server didn't granted asked subset of flags: "
-                      "asked="LPX64" grranted="LPX64"\n",
+               CERROR("%s: Server didn't granted asked subset of flags: asked=%#llx grranted=%#llx\n",
                       imp->imp_obd->obd_name,imp->imp_connect_flags_orig,
                       ocd->ocd_connect_flags);
                GOTO(out, rc = -EPROTO);
@@ -901,8 +900,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
                memset(&old_hdl, 0, sizeof(old_hdl));
                if (!memcmp(&old_hdl, lustre_msg_get_handle(request->rq_repmsg),
                            sizeof(old_hdl))) {
-                       LCONSOLE_WARN("Reconnect to %s (at @%s) failed due "
-                                     "bad handle "LPX64"\n",
+                       LCONSOLE_WARN("Reconnect to %s (at @%s) failed due bad handle %#llx\n",
                                      obd2cli_tgt(imp->imp_obd),
                                      imp->imp_connection->c_remote_uuid.uuid,
                                      imp->imp_dlm_handle.cookie);
@@ -923,9 +921,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
                         * participate since we can reestablish all of our state
                         * with server again */
                        if ((MSG_CONNECT_RECOVERING & msg_flags)) {
-                               CDEBUG(level,"%s@%s changed server handle from "
-                                      LPX64" to "LPX64
-                                      " but is still in recovery\n",
+                               CDEBUG(level,"%s@%s changed server handle from %#llx to %#llx but is still in recovery\n",
                                       obd2cli_tgt(imp->imp_obd),
                                       imp->imp_connection->c_remote_uuid.uuid,
                                       imp->imp_remote_handle.cookie,
@@ -933,8 +929,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
                                       request->rq_repmsg)->cookie);
                        } else {
                                LCONSOLE_WARN("Evicted from %s (at %s) "
-                                             "after server handle changed from "
-                                             LPX64" to "LPX64"\n",
+                                             "after server handle changed from %#llx to %#llx\n",
                                              obd2cli_tgt(imp->imp_obd),
                                              imp->imp_connection-> \
                                              c_remote_uuid.uuid,
@@ -1117,9 +1112,8 @@ finish:
                 * disable lru_resize, etc. */
                if (old_connect_flags != exp_connect_flags(exp) ||
                    aa->pcaa_initial_connect) {
-                       CDEBUG(D_HA, "%s: Resetting ns_connect_flags to server "
-                              "flags: "LPX64"\n", imp->imp_obd->obd_name,
-                             ocd->ocd_connect_flags);
+                       CDEBUG(D_HA, "%s: Resetting ns_connect_flags to server flags: %#llx\n",
+                              imp->imp_obd->obd_name, ocd->ocd_connect_flags);
                        imp->imp_obd->obd_namespace->ns_connect_flags =
                                ocd->ocd_connect_flags;
                        imp->imp_obd->obd_namespace->ns_orig_connect_flags =
index b4c696e715f2eab7d904866ff04e69508da87f3d..89fc7f77b49823093c3f16ec873819433f4e54ca 100644 (file)
@@ -225,7 +225,7 @@ int ptlrpc_register_bulk(struct ptlrpc_request *req)
        spin_unlock(&desc->bd_lock);
 
        CDEBUG(D_NET, "Setup %u bulk %s buffers: %u pages %u bytes, "
-              "xid x"LPX64"-"LPX64", portal %u\n", desc->bd_md_count,
+              "xid x%#llx-%#llx, portal %u\n", desc->bd_md_count,
               desc->bd_type == BULK_GET_SOURCE ? "get-source" : "put-sink",
               desc->bd_iov_count, desc->bd_nob,
               desc->bd_last_xid, req->rq_xid, desc->bd_portal);
index 0bd0af2dace28d66e45c7adbfb1f787bfe15c37a..ac562932ccdf02a7df0e08d0373da19aab9f05ab 100644 (file)
@@ -2305,7 +2305,7 @@ void dump_obdo(struct obdo *oa)
        if (valid & OBD_MD_FLID)
                CDEBUG(D_RPCTRACE, "obdo: id = "DOSTID"\n", POSTID(&oa->o_oi));
        if (valid & OBD_MD_FLFID)
-               CDEBUG(D_RPCTRACE, "obdo: o_parent_seq = "LPX64"\n",
+               CDEBUG(D_RPCTRACE, "obdo: o_parent_seq = %#llx\n",
                       oa->o_parent_seq);
        if (valid & OBD_MD_FLSIZE)
                CDEBUG(D_RPCTRACE, "obdo: o_size = %lld\n", oa->o_size);