summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_malloc.c4
-rw-r--r--sys/kern/kern_malloc_debug.c4
-rw-r--r--sys/kern/kern_proc.c4
-rw-r--r--sys/kern/subr_disk.c4
-rw-r--r--sys/kern/subr_extent.c6
-rw-r--r--sys/kern/subr_pool.c17
-rw-r--r--sys/kern/uipc_mbuf.c4
-rw-r--r--sys/kern/vfs_bio.c7
-rw-r--r--sys/kern/vfs_subr.c8
9 files changed, 30 insertions, 28 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 34a976613a3..e0bd779b13c 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.102 2013/07/04 17:35:52 tedu Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.103 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -674,7 +674,7 @@ malloc_roundup(size_t sz)
void
malloc_printit(
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
#ifdef KMEMSTATS
struct kmemstats *km;
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c
index 0eb73573d9d..046af234b4f 100644
--- a/sys/kern/kern_malloc_debug.c
+++ b/sys/kern/kern_malloc_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc_debug.c,v 1.31 2013/06/25 19:45:15 syl Exp $ */
+/* $OpenBSD: kern_malloc_debug.c,v 1.32 2013/08/08 23:25:06 syl Exp $ */
/*
* Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org>
@@ -301,7 +301,7 @@ debug_malloc_assert_allocated(void *addr, const char *func)
void
debug_malloc_printit(
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */,
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))),
vaddr_t addr)
{
struct debug_malloc_entry *md;
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index da0b84e90f1..576cff8449a 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_proc.c,v 1.50 2013/02/17 17:39:29 miod Exp $ */
+/* $OpenBSD: kern_proc.c,v 1.51 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */
/*
@@ -381,7 +381,7 @@ orphanpg(struct pgrp *pg)
#ifdef DDB
void
proc_printit(struct proc *p, const char *modif,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
static const char *const pstat[] = {
"idle", "run", "sleep", "stop", "zombie", "dead", "onproc"
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index f5eebe39c34..c132d2aeba9 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.150 2013/07/03 15:21:40 sf Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.151 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -756,7 +756,7 @@ diskerr(struct buf *bp, char *dname, char *what, int pri, int blkdone,
struct disklabel *lp)
{
int unit = DISKUNIT(bp->b_dev), part = DISKPART(bp->b_dev);
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */;
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2)));
char partname = 'a' + part;
daddr_t sn;
diff --git a/sys/kern/subr_extent.c b/sys/kern/subr_extent.c
index 48b638fee2b..98b52baab84 100644
--- a/sys/kern/subr_extent.c
+++ b/sys/kern/subr_extent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_extent.c,v 1.47 2013/02/17 17:39:29 miod Exp $ */
+/* $OpenBSD: subr_extent.c,v 1.48 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: subr_extent.c,v 1.7 1996/11/21 18:46:34 cgd Exp $ */
/*-
@@ -70,7 +70,7 @@
#if defined(DIAGNOSTIC) || defined(DDB)
void extent_print1(struct extent *, int (*)(const char *, ...)
- /* __attribute__((__format__(__kprintf__,1,2))) */);
+ __attribute__((__format__(__kprintf__,1,2))));
#endif
static void extent_insert_and_optimize(struct extent *, u_long, u_long,
@@ -1160,7 +1160,7 @@ extent_print(struct extent *ex)
void
extent_print1(struct extent *ex,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct extent_region *rp;
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index e2dc2a798ec..b469b9b8139 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.122 2013/06/05 00:44:06 tedu Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.123 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -131,9 +131,9 @@ void pool_large_free_ni(struct pool *, void *);
#ifdef DDB
void pool_print_pagelist(struct pool_pagelist *, int (*)(const char *, ...)
- /* __attribute__((__format__(__kprintf__,1,2))) */);
+ __attribute__((__format__(__kprintf__,1,2))));
void pool_print1(struct pool *, const char *, int (*)(const char *, ...)
- /* __attribute__((__format__(__kprintf__,1,2))) */);
+ __attribute__((__format__(__kprintf__,1,2))));
#endif
#define pool_sleep(pl) msleep(pl, &pl->pr_mtx, PSWP, pl->pr_wchan, 0)
@@ -1133,14 +1133,14 @@ pool_reclaim_all(void)
*/
void
pool_printit(struct pool *pp, const char *modif,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
pool_print1(pp, modif, pr);
}
void
pool_print_pagelist(struct pool_pagelist *pl,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct pool_item_header *ph;
#ifdef DIAGNOSTIC
@@ -1163,7 +1163,7 @@ pool_print_pagelist(struct pool_pagelist *pl,
void
pool_print1(struct pool *pp, const char *modif,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct pool_item_header *ph;
int print_pagelist = 0;
@@ -1377,8 +1377,9 @@ pool_chk(struct pool *pp)
#ifdef DDB
void
pool_walk(struct pool *pp, int full,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */,
- void (*func)(void *, int, int (*)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */))
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))),
+ void (*func)(void *, int, int (*)(const char *, ...)
+ __attribute__((__format__(__kprintf__,1,2)))))
{
struct pool_item_header *ph;
struct pool_item *pi;
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 8971553b4b1..fdc4b887c32 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.173 2013/06/11 13:29:50 dlg Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.174 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -1346,7 +1346,7 @@ m_dup_pkthdr(struct mbuf *to, struct mbuf *from, int wait)
#ifdef DDB
void
m_print(void *v,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct mbuf *m = v;
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index b21cbafbc35..61dcc579afa 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.151 2013/07/09 15:37:43 beck Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.152 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*
@@ -1239,13 +1239,14 @@ biodone(struct buf *bp)
}
#ifdef DDB
-void bcstats_print(int (*)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */);
+void bcstats_print(int (*)(const char *, ...)
+ __attribute__((__format__(__kprintf__,1,2))));
/*
* bcstats_print: ddb hook to print interesting buffer cache counters
*/
void
bcstats_print(
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
(*pr)("Current Buffer Cache status:\n");
(*pr)("numbufs %lld busymapped %lld, delwri %lld\n",
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 2f2699424b1..58066786c4d 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.205 2013/07/30 17:07:56 beck Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.206 2013/08/08 23:25:06 syl Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -2152,7 +2152,7 @@ vn_isdisk(struct vnode *vp, int *errp)
void
vfs_buf_print(void *b, int full,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct buf *bp = b;
@@ -2180,7 +2180,7 @@ const char *vtags[] = { VTAG_NAMES };
void
vfs_vnode_print(void *v, int full,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct vnode *vp = v;
@@ -2214,7 +2214,7 @@ vfs_vnode_print(void *v, int full,
void
vfs_mount_print(struct mount *mp, int full,
- int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct vfsconf *vfc = mp->mnt_vfc;
struct vnode *vp;