"EQ-STAT[max:x%x noE:x%x "
                                "bs:x%x proc:x%llx]\n",
                                qp->q_cnt_1, qp->q_cnt_2,
-                               qp->q_cnt_3, qp->q_cnt_4);
+                               qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
 
                        len += snprintf(pbuffer+len,
                                LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                "xabt:x%x wq:x%llx]\n",
                                qp->assoc_qid,
                                qp->q_cnt_1, qp->q_cnt_2,
-                               qp->q_cnt_3, qp->q_cnt_4);
+                               qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
                        len += snprintf(pbuffer+len,
                                LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                "\tCQID[%02d], "
                                "AssocCQID[%02d]: "
                                "WQ-STAT[oflow:x%x posted:x%llx]\n",
                                qp->assoc_qid,
-                               qp->q_cnt_1, qp->q_cnt_4);
+                               qp->q_cnt_1, (unsigned long long)qp->q_cnt_4);
                        len += snprintf(pbuffer+len,
                                LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                "\t\tWQID[%02d], "
                                        "xabt:x%x wq:x%llx]\n",
                                        qp->assoc_qid,
                                        qp->q_cnt_1, qp->q_cnt_2,
-                                       qp->q_cnt_3, qp->q_cnt_4);
+                                       qp->q_cnt_3,
+                                       (unsigned long long)qp->q_cnt_4);
                                len += snprintf(pbuffer+len,
                                        LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                        "\tCQID[%02d], "
                                        "xabt:x%x wq:x%llx]\n",
                                        qp->assoc_qid,
                                        qp->q_cnt_1, qp->q_cnt_2,
-                                       qp->q_cnt_3, qp->q_cnt_4);
+                                       qp->q_cnt_3,
+                                       (unsigned long long)qp->q_cnt_4);
                                len += snprintf(pbuffer+len,
                                        LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                        "\tCQID [%02d], "
                                        " WQ-STAT[oflow:x%x "
                                        "posted:x%llx]\n",
                                        qp->assoc_qid,
-                                       qp->q_cnt_1, qp->q_cnt_4);
+                                       qp->q_cnt_1,
+                                       (unsigned long long)qp->q_cnt_4);
                                len += snprintf(pbuffer+len,
                                        LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                        "\t\tWQID[%02d], "
                                        "trunc:x%x rcv:x%llx]\n",
                                        qp->assoc_qid,
                                        qp->q_cnt_1, qp->q_cnt_2,
-                                       qp->q_cnt_3, qp->q_cnt_4);
+                                       qp->q_cnt_3,
+                                       (unsigned long long)qp->q_cnt_4);
                                len += snprintf(pbuffer+len,
                                        LPFC_QUE_INFO_GET_BUF_SIZE-len,
                                        "\t\tHQID[%02d], "