From e3ea11974acb5377496dbcf54ac82d7c0a30eb58 Mon Sep 17 00:00:00 2001 From: cegger Date: Mon, 12 Jan 2009 08:27:26 +0000 Subject: [PATCH] cast to char to printf DISKPART XXX Shouldn't sun3 use the MI drivers instead? --- sys/arch/sun3/dev/xd.c | 6 +++--- sys/arch/sun3/dev/xy.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/sun3/dev/xd.c b/sys/arch/sun3/dev/xd.c index 827e9b31a0f8..e21fd7ab95b5 100644 --- a/sys/arch/sun3/dev/xd.c +++ b/sys/arch/sun3/dev/xd.c @@ -1,4 +1,4 @@ -/* $NetBSD: xd.c,v 1.65 2008/06/28 12:13:38 tsutsui Exp $ */ +/* $NetBSD: xd.c,v 1.66 2009/01/12 08:27:26 cegger Exp $ */ /* * @@ -52,7 +52,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.65 2008/06/28 12:13:38 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.66 2009/01/12 08:27:26 cegger Exp $"); #undef XDC_DEBUG /* full debug */ #define XDC_DIAG /* extra sanity checks */ @@ -1943,7 +1943,7 @@ xdc_perror(struct xd_iorq *iorq, struct xd_iopb *iopb, int still_trying) device_xname(iorq->xd->sc_dev) : device_xname(iorq->xdc->sc_dev)); if (iorq->buf) - printf("%c: ", 'a' + DISKPART(iorq->buf->b_dev)); + printf("%c: ", 'a' + (char)DISKPART(iorq->buf->b_dev)); if (iopb->comm == XDCMD_RD || iopb->comm == XDCMD_WR) printf("%s %d/%d/%d: ", (iopb->comm == XDCMD_RD) ? "read" : "write", diff --git a/sys/arch/sun3/dev/xy.c b/sys/arch/sun3/dev/xy.c index cab3f8989f2c..3975e96e7492 100644 --- a/sys/arch/sun3/dev/xy.c +++ b/sys/arch/sun3/dev/xy.c @@ -1,4 +1,4 @@ -/* $NetBSD: xy.c,v 1.69 2008/06/28 12:13:38 tsutsui Exp $ */ +/* $NetBSD: xy.c,v 1.70 2009/01/12 08:27:26 cegger Exp $ */ /* * @@ -52,7 +52,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.69 2008/06/28 12:13:38 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.70 2009/01/12 08:27:26 cegger Exp $"); #undef XYC_DEBUG /* full debug */ #undef XYC_DIAG /* extra sanity checks */ @@ -1842,7 +1842,7 @@ xyc_perror(struct xy_iorq *iorq, struct xy_iopb *iopb, int still_trying) printf("%s", (iorq->xy) ? device_xname(iorq->xy->sc_dev) : device_xname(iorq->xyc->sc_dev)); if (iorq->buf) - printf("%c: ", 'a' + DISKPART(iorq->buf->b_dev)); + printf("%c: ", 'a' + (char)DISKPART(iorq->buf->b_dev)); if (iopb->com == XYCMD_RD || iopb->com == XYCMD_WR) printf("%s %d/%d/%d: ", (iopb->com == XYCMD_RD) ? "read" : "write",