From e73482f4be9e03b0926b2e394ccb678161e36eca Mon Sep 17 00:00:00 2001 From: Gleydson Soares Date: Sat, 23 Nov 2013 23:35:03 +0000 Subject: fix format string; OK deraadt@ --- sys/scsi/mpath_emc.c | 4 ++-- sys/scsi/mpath_hds.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/mpath_emc.c b/sys/scsi/mpath_emc.c index d5d52ba0c15..5db283c5a61 100644 --- a/sys/scsi/mpath_emc.c +++ b/sys/scsi/mpath_emc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_emc.c,v 1.14 2013/08/27 00:57:43 dlg Exp $ */ +/* $OpenBSD: mpath_emc.c,v 1.15 2013/11/23 23:35:02 gsoares Exp $ */ /* * Copyright (c) 2011 David Gwynne @@ -234,7 +234,7 @@ emc_inquiry(struct emc_softc *sc, char *model, char *serial) length = MIN(sc->sc_path.p_link->inqdata.additional_length + 5, 255); if (length < 160) { - printf("%s: FC (Legacy)\n"); + printf("%s: FC (Legacy)\n", DEVNAME(sc)); return (0); } diff --git a/sys/scsi/mpath_hds.c b/sys/scsi/mpath_hds.c index 4a48d384521..cdc8654d632 100644 --- a/sys/scsi/mpath_hds.c +++ b/sys/scsi/mpath_hds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_hds.c,v 1.12 2013/08/27 00:57:44 dlg Exp $ */ +/* $OpenBSD: mpath_hds.c,v 1.13 2013/11/23 23:35:02 gsoares Exp $ */ /* * Copyright (c) 2011 David Gwynne @@ -152,12 +152,12 @@ hds_attach(struct device *parent, struct device *self, void *aux) sc->sc_path.p_link = link; if (hds_inquiry(link, &sc->sc_mode) != 0) { - printf("%s: unable to query controller mode\n"); + printf("%s: unable to query controller mode\n", DEVNAME(sc)); return; } if (hds_info(sc) != 0) { - printf("%s: unable to query path info\n"); + printf("%s: unable to query path info\n", DEVNAME(sc)); return; } -- cgit v1.2.3