Index:pfil/pfilstream.c

--- pfilstream-2.1.13.c	Sun Apr 29 19:53:03 2007
+++ pfilstream-2.1.13a.c	Wed Jul  4 23:15:08 2007
@@ -140,29 +140,29 @@
 /* ------------------------------------------------------------------------ */
 /* Function:    pfil_printioctl                                             */
 /* Returns:     void                                                        */
 /* Parameters:  mp(I) - pointer to mblk message with ioctl                  */
 /*                                                                          */
 /* This is primarly for debugging purposes - print out in a more legible    */
 /* format what an ioctl is.                                                 */
 /* ------------------------------------------------------------------------ */
 static void pfil_printioctl(mblk_t *mp)
 {
 	struct iocblk *iocp;
 	int cmd, num;
 	char buf[80], l;
 
-	if (!mp || !mp->b_datap || !mp->b_datap->db_base)
+	if (pfildebug < 3 || !mp || !mp->b_datap || !mp->b_datap->db_base)
 		return;
 	iocp = (struct iocblk *)mp->b_rptr;
 	cmd = iocp->ioc_cmd;
 
 #ifdef __hpux
 	sprintf(buf, sizeof(buf), "0x%x=_IO", cmd);
 #else
 	(void)sprintf(buf, "0x%x=_IO", cmd);
 #endif
 	switch (cmd >> 24)
 	{
 	case 0x20:
 		(void)strcat(buf, "V(");
 		break;
