From owner-svn-src-all@freebsd.org Fri Jan 26 23:56:08 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0580AED0DF8; Fri, 26 Jan 2018 23:56:08 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7E8C6BFA4; Fri, 26 Jan 2018 23:56:07 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A2CCE22736; Fri, 26 Jan 2018 23:56:07 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0QNu7Z2087148; Fri, 26 Jan 2018 23:56:07 GMT (envelope-from scottl@FreeBSD.org) Received: (from scottl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0QNu796087146; Fri, 26 Jan 2018 23:56:07 GMT (envelope-from scottl@FreeBSD.org) Message-Id: <201801262356.w0QNu796087146@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: scottl set sender to scottl@FreeBSD.org using -f From: Scott Long Date: Fri, 26 Jan 2018 23:56:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328455 - in head/sys/cam: . scsi X-SVN-Group: head X-SVN-Commit-Author: scottl X-SVN-Commit-Paths: in head/sys/cam: . scsi X-SVN-Commit-Revision: 328455 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 23:56:08 -0000 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",