diff options
| author | oster <oster@NetBSD.org> | 2002-09-14 17:53:57 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2002-09-14 17:53:57 +0000 |
| commit | a2b9142871be6607c6e2ba4783f9b265c09bcac6 (patch) | |
| tree | c4c170bbdda5640da4aceb0bfadd74b2fb26ee05 /sys/dev/raidframe/rf_callback.c | |
| parent | 954775e02cbfedd06104952e24f5943c8f8bc80a (diff) | |
Everyone and their dog was using RF_ERRORMSG3 to print out the same
sort of error message, over and over again, in different files.
Rather than having the same text repeated in multiple .o files,
create a couple of little functions to do the printing, and save a
bundle of space. Also improves readability of code.
Diffstat (limited to 'sys/dev/raidframe/rf_callback.c')
| -rw-r--r-- | sys/dev/raidframe/rf_callback.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_callback.c b/sys/dev/raidframe/rf_callback.c index d13f09f963b..a7ca2dada58 100644 --- a/sys/dev/raidframe/rf_callback.c +++ b/sys/dev/raidframe/rf_callback.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_callback.c,v 1.6 2001/11/13 07:11:12 lukem Exp $ */ +/* $NetBSD: rf_callback.c,v 1.7 2002/09/14 17:53:59 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -34,7 +34,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.6 2001/11/13 07:11:12 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.7 2002/09/14 17:53:59 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -71,8 +71,7 @@ rf_ConfigureCallback(listp) return (ENOMEM); rc = rf_ShutdownCreate(listp, rf_ShutdownCallback, NULL); if (rc) { - RF_ERRORMSG3("Unable to add to shutdown list file %s line %d rc=%d\n", __FILE__, - __LINE__, rc); + rf_print_unable_to_add_shutdown(__FILE__,__LINE__, rc); rf_ShutdownCallback(NULL); return (rc); } |
