diff options
author | phk <phk@FreeBSD.org> | 2003-11-18 07:54:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-11-18 07:54:12 +0000 |
commit | aeb3231da54a3650fcf24701bfb935e535a1c3cf (patch) | |
tree | 78011afc0aaeccbdf81dbf868c0c1874b386cf2e /sys/geom | |
parent | ebb0b7ecdadb197ee4a399944a1ea7862a288b70 (diff) | |
download | FreeBSD-src-aeb3231da54a3650fcf24701bfb935e535a1c3cf.zip FreeBSD-src-aeb3231da54a3650fcf24701bfb935e535a1c3cf.tar.gz |
Fix a harmless bug and add a ')' in a debugging printf.
Submitted by: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index e326a22..b2b3095 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -246,7 +246,7 @@ g_post_event_x(g_event_t *func, void *arg, int flag, struct g_event **epp, va_li void *p; u_int n; - g_trace(G_T_TOPOLOGY, "g_post_event_x(%p, %p, %d", func, arg, flag); + g_trace(G_T_TOPOLOGY, "g_post_event_x(%p, %p, %d)", func, arg, flag); ep = g_malloc(sizeof *ep, flag | M_ZERO); if (ep == NULL) return (ENOMEM); @@ -256,7 +256,7 @@ g_post_event_x(g_event_t *func, void *arg, int flag, struct g_event **epp, va_li if (p == NULL) break; g_trace(G_T_TOPOLOGY, " ref %p", p); - ep->ref[n++] = p; + ep->ref[n] = p; } KASSERT(p == NULL, ("Too many references to event")); ep->func = func; |