mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Silence noisy firewire logging.
MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: 974594 on 2013/08/02
This commit is contained in:
parent
d9446691c8
commit
6ad82d5feb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271793
@ -1560,8 +1560,6 @@ fw_explore_node(struct fw_device *dfwdev)
|
|||||||
/* First quad */
|
/* First quad */
|
||||||
err = fw_explore_read_quads(dfwdev, CSRROMOFF, &csr[0], 1);
|
err = fw_explore_read_quads(dfwdev, CSRROMOFF, &csr[0], 1);
|
||||||
if (err) {
|
if (err) {
|
||||||
device_printf(fc->bdev, "%s: node%d: explore_read_quads failure\n",
|
|
||||||
__func__, node);
|
|
||||||
dfwdev->status = FWDEVINVAL;
|
dfwdev->status = FWDEVINVAL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
@ -1577,15 +1575,11 @@ fw_explore_node(struct fw_device *dfwdev)
|
|||||||
/* bus info */
|
/* bus info */
|
||||||
err = fw_explore_read_quads(dfwdev, CSRROMOFF + 0x04, &csr[1], 4);
|
err = fw_explore_read_quads(dfwdev, CSRROMOFF + 0x04, &csr[1], 4);
|
||||||
if (err) {
|
if (err) {
|
||||||
device_printf(fc->bdev, "%s: node%d: error reading 0x04\n",
|
|
||||||
__func__, node);
|
|
||||||
dfwdev->status = FWDEVINVAL;
|
dfwdev->status = FWDEVINVAL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
binfo = (struct bus_info *)&csr[1];
|
binfo = (struct bus_info *)&csr[1];
|
||||||
if (binfo->bus_name != CSR_BUS_NAME_IEEE1394) {
|
if (binfo->bus_name != CSR_BUS_NAME_IEEE1394) {
|
||||||
device_printf(fc->bdev, "%s: node%d: invalid bus name 0x%08x\n",
|
|
||||||
__func__, node, binfo->bus_name);
|
|
||||||
dfwdev->status = FWDEVINVAL;
|
dfwdev->status = FWDEVINVAL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
@ -1668,10 +1662,6 @@ fw_explore_node(struct fw_device *dfwdev)
|
|||||||
STAILQ_INSERT_HEAD(&fc->devices, fwdev, link);
|
STAILQ_INSERT_HEAD(&fc->devices, fwdev, link);
|
||||||
else
|
else
|
||||||
STAILQ_INSERT_AFTER(&fc->devices, pfwdev, fwdev, link);
|
STAILQ_INSERT_AFTER(&fc->devices, pfwdev, fwdev, link);
|
||||||
|
|
||||||
device_printf(fc->bdev, "New %s device ID:%08x%08x\n",
|
|
||||||
linkspeed[fwdev->speed],
|
|
||||||
fwdev->eui.hi, fwdev->eui.lo);
|
|
||||||
} else {
|
} else {
|
||||||
fwdev->dst = node;
|
fwdev->dst = node;
|
||||||
fwdev->status = FWDEVINIT;
|
fwdev->status = FWDEVINIT;
|
||||||
@ -1828,9 +1818,6 @@ fw_attach_dev(struct firewire_comm *fc)
|
|||||||
* Remove devices which have not been seen
|
* Remove devices which have not been seen
|
||||||
* for a while.
|
* for a while.
|
||||||
*/
|
*/
|
||||||
device_printf(fc->bdev, "%s:"
|
|
||||||
"Removing missing device ID:%08x%08x\n",
|
|
||||||
__func__, fwdev->eui.hi, fwdev->eui.lo);
|
|
||||||
STAILQ_REMOVE(&fc->devices, fwdev, fw_device,
|
STAILQ_REMOVE(&fc->devices, fwdev, fw_device,
|
||||||
link);
|
link);
|
||||||
free(fwdev, M_FW);
|
free(fwdev, M_FW);
|
||||||
|
@ -1126,12 +1126,10 @@ fwohci_txd(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
|
|||||||
case FWOHCIEV_ACKBSA:
|
case FWOHCIEV_ACKBSA:
|
||||||
case FWOHCIEV_ACKBSB:
|
case FWOHCIEV_ACKBSB:
|
||||||
case FWOHCIEV_ACKBSX:
|
case FWOHCIEV_ACKBSX:
|
||||||
device_printf(sc->fc.dev, "txd err=%2x %s\n", stat, fwohcicode[stat]);
|
|
||||||
err = EBUSY;
|
err = EBUSY;
|
||||||
break;
|
break;
|
||||||
case FWOHCIEV_FLUSHED:
|
case FWOHCIEV_FLUSHED:
|
||||||
case FWOHCIEV_ACKTARD:
|
case FWOHCIEV_ACKTARD:
|
||||||
device_printf(sc->fc.dev, "txd err=%2x %s\n", stat, fwohcicode[stat]);
|
|
||||||
err = EAGAIN;
|
err = EAGAIN;
|
||||||
break;
|
break;
|
||||||
case FWOHCIEV_MISSACK:
|
case FWOHCIEV_MISSACK:
|
||||||
@ -1145,8 +1143,6 @@ fwohci_txd(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
|
|||||||
case FWOHCIEV_ACKDERR:
|
case FWOHCIEV_ACKDERR:
|
||||||
case FWOHCIEV_ACKTERR:
|
case FWOHCIEV_ACKTERR:
|
||||||
default:
|
default:
|
||||||
device_printf(sc->fc.dev, "txd err=%2x %s\n",
|
|
||||||
stat, fwohcicode[stat]);
|
|
||||||
err = EINVAL;
|
err = EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user