Module Name: src Committed By: msaitoh Date: Wed Sep 4 07:29:34 UTC 2019
Modified Files: src/sys/dev/pci/ixgbe: ix_txrx.c ixgbe.c ixgbe_netbsd.c ixv.c Log Message: printf -> device_printf To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/dev/pci/ixgbe/ix_txrx.c cvs rdiff -u -r1.206 -r1.207 src/sys/dev/pci/ixgbe/ixgbe.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/ixgbe/ixgbe_netbsd.c cvs rdiff -u -r1.128 -r1.129 src/sys/dev/pci/ixgbe/ixv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ix_txrx.c diff -u src/sys/dev/pci/ixgbe/ix_txrx.c:1.54 src/sys/dev/pci/ixgbe/ix_txrx.c:1.55 --- src/sys/dev/pci/ixgbe/ix_txrx.c:1.54 Thu Jul 4 08:56:35 2019 +++ src/sys/dev/pci/ixgbe/ix_txrx.c Wed Sep 4 07:29:34 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ix_txrx.c,v 1.54 2019/07/04 08:56:35 msaitoh Exp $ */ +/* $NetBSD: ix_txrx.c,v 1.55 2019/09/04 07:29:34 msaitoh Exp $ */ /****************************************************************************** @@ -1363,7 +1363,9 @@ ixgbe_refresh_mbufs(struct rx_ring *rxr, error = bus_dmamap_load_mbuf(rxr->ptag->dt_dmat, rxbuf->pmap, mp, BUS_DMA_NOWAIT); if (error != 0) { - printf("Refresh mbufs: payload dmamap load failure - %d\n", error); + device_printf(adapter->dev, "Refresh mbufs: " + "payload dmamap load failure - %d\n", + error); m_free(mp); rxbuf->buf = NULL; goto update; Index: src/sys/dev/pci/ixgbe/ixgbe.c diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.206 src/sys/dev/pci/ixgbe/ixgbe.c:1.207 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.206 Thu Aug 29 09:45:22 2019 +++ src/sys/dev/pci/ixgbe/ixgbe.c Wed Sep 4 07:29:34 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.206 2019/08/29 09:45:22 knakahara Exp $ */ +/* $NetBSD: ixgbe.c,v 1.207 2019/09/04 07:29:34 msaitoh Exp $ */ /****************************************************************************** @@ -3306,7 +3306,8 @@ ixgbe_sysctl_instance(struct adapter *ad return rnode; err: - printf("%s: sysctl_createv failed, rc = %d\n", __func__, rc); + device_printf(adapter->dev, + "%s: sysctl_createv failed, rc = %d\n", __func__, rc); return NULL; } Index: src/sys/dev/pci/ixgbe/ixgbe_netbsd.c diff -u src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.9 src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.10 --- src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.9 Thu Dec 6 13:25:02 2018 +++ src/sys/dev/pci/ixgbe/ixgbe_netbsd.c Wed Sep 4 07:29:34 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe_netbsd.c,v 1.9 2018/12/06 13:25:02 msaitoh Exp $ */ +/* $NetBSD: ixgbe_netbsd.c,v 1.10 2019/09/04 07:29:34 msaitoh Exp $ */ /* * Copyright (c) 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -197,7 +197,8 @@ ixgbe_jcl_reinit(struct adapter *adapter for (i = 0; i < nbuf; i++) { if ((em = ixgbe_newext(eh, dmat, size)) == NULL) { - printf("%s: only %d of %d jumbo buffers allocated\n", + device_printf(adapter->dev, + "%s: only %d of %d jumbo buffers allocated\n", __func__, i, nbuf); break; } Index: src/sys/dev/pci/ixgbe/ixv.c diff -u src/sys/dev/pci/ixgbe/ixv.c:1.128 src/sys/dev/pci/ixgbe/ixv.c:1.129 --- src/sys/dev/pci/ixgbe/ixv.c:1.128 Wed Aug 21 10:01:53 2019 +++ src/sys/dev/pci/ixgbe/ixv.c Wed Sep 4 07:29:34 2019 @@ -1,4 +1,4 @@ -/*$NetBSD: ixv.c,v 1.128 2019/08/21 10:01:53 msaitoh Exp $*/ +/*$NetBSD: ixv.c,v 1.129 2019/09/04 07:29:34 msaitoh Exp $*/ /****************************************************************************** @@ -2406,7 +2406,8 @@ ixv_sysctl_instance(struct adapter *adap return rnode; err: - printf("%s: sysctl_createv failed, rc = %d\n", __func__, rc); + device_printf(adapter->dev, + "%s: sysctl_createv failed, rc = %d\n", __func__, rc); return NULL; }