From 5ee727b6e34c7185b6100f4a45f1c453a52f7e52 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 5 May 2013 12:31:50 +0200 Subject: [PATCH] kernel/scsi_da: Use __func__ for printing function names. --- sys/bus/cam/scsi/scsi_da.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/bus/cam/scsi/scsi_da.c b/sys/bus/cam/scsi/scsi_da.c index f5bcd90248..94515a923a 100644 --- a/sys/bus/cam/scsi/scsi_da.c +++ b/sys/bus/cam/scsi/scsi_da.c @@ -889,7 +889,8 @@ dainit(void) /* Register our shutdown event handler */ if ((EVENTHANDLER_REGISTER(shutdown_post_sync, dashutdown, NULL, SHUTDOWN_PRI_DEFAULT)) == NULL) - kprintf("dainit: shutdown event registration failed!\n"); + kprintf("%s: shutdown event registration failed!\n", + __func__); } } @@ -1004,8 +1005,8 @@ daasync(void *callback_arg, u_int32_t code, AC_FOUND_DEVICE, cgd); if (status != CAM_REQ_CMP && status != CAM_REQ_INPROG) { - kprintf("daasync: Unable to attach to new device " - "due to status 0x%x\n", status); + kprintf("%s: Unable to attach to new device " + "due to status 0x%x\n", __func__, status); } break; } @@ -1055,7 +1056,7 @@ dasysctlinit(void *context, int pending) SYSCTL_STATIC_CHILDREN(_kern_cam_da), OID_AUTO, tmpstr2, CTLFLAG_RD, 0, tmpstr); if (softc->sysctl_tree == NULL) { - kprintf("dasysctlinit: unable to allocate sysctl tree\n"); + kprintf("%s: unable to allocate sysctl tree\n", __func__); cam_periph_release(periph); rel_mplock(); return; @@ -1129,12 +1130,13 @@ daregister(struct cam_periph *periph, void *arg) cgd = (struct ccb_getdev *)arg; if (periph == NULL) { - kprintf("daregister: periph was NULL!!\n"); + kprintf("%s: periph was NULL!!\n", __func__); return(CAM_REQ_CMP_ERR); } if (cgd == NULL) { - kprintf("daregister: no getdev CCB, can't register device\n"); + kprintf("%s: no getdev CCB, can't register device\n", + __func__); return(CAM_REQ_CMP_ERR); } -- 2.41.0