Exemple #1
0
void
_kgnilnd_debug_msg(kgn_msg_t *msg, struct libcfs_debug_msg_data *msgdata,
		   const char *fmt, ...)
{
	va_list args;

	va_start(args, fmt);
	/* XXX Nic TBD: add handling of gnm_u ? */
	libcfs_debug_vmsg2(msgdata, fmt, args,
			   " msg@0x%p m/v/ty/ck/pck/pl %08x/%d/%d/%x/%x/%d x%d:%s\n",
			   msg, msg->gnm_magic, msg->gnm_version, msg->gnm_type,
			   msg->gnm_cksum, msg->gnm_payload_cksum,
			   msg->gnm_payload_len, msg->gnm_seq,
			   kgnilnd_msgtype2str(msg->gnm_type));
	va_end(args);
}
Exemple #2
0
/*
 * Print lqe information for debugging.
 *
 * \param lqe - is the quota entry to debug
 * \param arg - is the pointer to the qsd_qtype_info structure
 * \param msgdata - debug message
 * \param fmt     - format of debug message
 */
static void qsd_lqe_debug(struct lquota_entry *lqe, void *arg,
			  struct libcfs_debug_msg_data *msgdata,
			  const char *fmt, va_list args)
{
	struct qsd_qtype_info	*qqi = (struct qsd_qtype_info *)arg;

	libcfs_debug_vmsg2(msgdata, fmt, args,
			   "qsd:%s qtype:%s id:"LPU64" enforced:%d granted:"
			   LPU64" pending:"LPU64" waiting:"LPU64" req:%d usage:"
			   LPU64" qunit:"LPU64" qtune:"LPU64" edquot:%d\n",
			   qqi->qqi_qsd->qsd_svname, QTYPE_NAME(qqi->qqi_qtype),
			   lqe->lqe_id.qid_uid, lqe->lqe_enforced,
			   lqe->lqe_granted, lqe->lqe_pending_write,
			   lqe->lqe_waiting_write, lqe->lqe_pending_req,
			   lqe->lqe_usage, lqe->lqe_qunit, lqe->lqe_qtune,
			   lqe->lqe_edquot);
}