From 09ed6483fde7ccbff036a517a482abd3334c9eb0 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 30 Mar 1996 21:54:33 +0000 Subject: [PATCH] - Parenthesize & - Change %r -> %: as for recursive printf's --- sys/netccitt/pk_subr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/netccitt/pk_subr.c b/sys/netccitt/pk_subr.c index 42a32cee1a57..2324862ddc51 100644 --- a/sys/netccitt/pk_subr.c +++ b/sys/netccitt/pk_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: pk_subr.c,v 1.11 1996/02/13 22:05:34 christos Exp $ */ +/* $NetBSD: pk_subr.c,v 1.12 1996/03/30 21:54:33 christos Exp $ */ /* * Copyright (c) University of British Columbia, 1984 @@ -1152,7 +1152,6 @@ pk_message(lcn, xcp, fmt, va_alist) #endif { va_list ap; - static const char *rec = "%r\n"; if (lcn) if (!PQEMPTY) @@ -1165,7 +1164,7 @@ pk_message(lcn, xcp, fmt, va_alist) printf("X.25: "); va_start(ap, fmt); - printf(rec, fmt, ap); + printf("%:\n", fmt, ap); va_end(ap); } @@ -1183,7 +1182,7 @@ pk_fragment(lcp, m0, qbit, mbit, wait) if (m == 0) return 0; - if (m->m_flags & M_PKTHDR == 0) + if ((m->m_flags & M_PKTHDR) == 0) panic("pk_fragment"); totlen = m->m_pkthdr.len; m->m_act = 0;