summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-02-10 22:04:44 +0000
committerphk <phk@FreeBSD.org>2002-02-10 22:04:44 +0000
commit95c1f2fa1ec419cafad04edf3e4afe2b83b04747 (patch)
treecef30435bbbe629d7a93126ee46980bd1fc465cd /sys/kern/subr_prf.c
parent6a8782408bd098e8f330be86a79bbdf2b0f86882 (diff)
downloadFreeBSD-src-95c1f2fa1ec419cafad04edf3e4afe2b83b04747.zip
FreeBSD-src-95c1f2fa1ec419cafad04edf3e4afe2b83b04747.tar.gz
Style(9) nits.
Obtained from: ~bde/sys.dif.gz
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 164bbf7..daa38e4 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -45,11 +45,11 @@
#include <sys/msgbuf.h>
#include <sys/malloc.h>
#include <sys/proc.h>
+#include <sys/sysctl.h>
#include <sys/tty.h>
#include <sys/syslog.h>
#include <sys/cons.h>
#include <sys/uio.h>
-#include <sys/sysctl.h>
/*
* Note that stdarg.h and the ANSI style va_start macro is used for both
@@ -123,7 +123,7 @@ uprintf(const char *fmt, ...)
retval = kvprintf(fmt, putchar, &pca, 10, ap);
va_end(ap);
}
- return retval;
+ return (retval);
}
/*
@@ -177,7 +177,7 @@ ttyprintf(struct tty *tp, const char *fmt, ...)
pca.flags = TOTTY;
retval = kvprintf(fmt, putchar, &pca, 10, ap);
va_end(ap);
- return retval;
+ return (retval);
}
/*
@@ -264,7 +264,7 @@ printf(const char *fmt, ...)
if (!panicstr)
msgbuftrigger = 1;
consintr = savintr; /* reenable interrupts */
- return retval;
+ return (retval);
}
int
@@ -283,7 +283,7 @@ vprintf(const char *fmt, va_list ap)
if (!panicstr)
msgbuftrigger = 1;
consintr = savintr; /* reenable interrupts */
- return retval;
+ return (retval);
}
/*
@@ -325,7 +325,7 @@ sprintf(char *buf, const char *cfmt, ...)
retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap);
buf[retval] = '\0';
va_end(ap);
- return retval;
+ return (retval);
}
/*
@@ -338,7 +338,7 @@ vsprintf(char *buf, const char *cfmt, va_list ap)
retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap);
buf[retval] = '\0';
- return retval;
+ return (retval);
}
/*
@@ -370,7 +370,7 @@ vsnprintf(char *str, size_t size, const char *format, va_list ap)
retval = kvprintf(format, snprintf_func, &info, 10, ap);
if (info.remain >= 1)
*info.str++ = '\0';
- return retval;
+ return (retval);
}
static void
@@ -485,7 +485,7 @@ kvprintf(char const *fmt, void (*func)(int, void*), void *arg, int radix, va_lis
width = 0;
while ((ch = (u_char)*fmt++) != '%') {
if (ch == '\0')
- return retval;
+ return (retval);
PCHAR(ch);
}
qflag = 0; lflag = 0; ladjust = 0; sharpflag = 0; neg = 0;
OpenPOWER on IntegriCloud