Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2018 23:56:07 +0000 (UTC)
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328455 - in head/sys/cam: . scsi
Message-ID:  <201801262356.w0QNu796087146@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: scottl
Date: Fri Jan 26 23:56:07 2018
New Revision: 328455
URL: https://svnweb.freebsd.org/changeset/base/328455

Log:
  Move CAM_PERIPH_PRINT() to cam_periph.h

Modified:
  head/sys/cam/cam_periph.h
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/cam_periph.h
==============================================================================
--- head/sys/cam/cam_periph.h	Fri Jan 26 23:49:31 2018	(r328454)
+++ head/sys/cam/cam_periph.h	Fri Jan 26 23:56:07 2018	(r328455)
@@ -260,5 +260,8 @@ cam_periph_acquire_next(struct cam_periph *pperiph)
 	    (periph) != NULL;						\
 	    (periph) = cam_periph_acquire_next(periph))
 
+#define CAM_PERIPH_PRINT(p, msg, args...)				\
+    printf("%s%d:" msg, (periph)->periph_name, (periph)->unit_number, ##args)
+
 #endif /* _KERNEL */
 #endif /* _CAM_CAM_PERIPH_H */

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Fri Jan 26 23:49:31 2018	(r328454)
+++ head/sys/cam/scsi/scsi_da.c	Fri Jan 26 23:56:07 2018	(r328455)
@@ -1497,9 +1497,6 @@ static MALLOC_DEFINE(M_SCSIDA, "scsi_da", "scsi_da buf
 #endif
 
 #if DA_TRACK_REFS > 1
-#define CAM_PERIPH_PRINT(p, msg, args...)				\
-    printf("%s%d:" msg, (periph)->periph_name, (periph)->unit_number, ##args)
-
 static const char *da_ref_text[] = {
 	"bogus",
 	"open",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801262356.w0QNu796087146>