From 19986c5f4a03e7d2a1ecc839196edc51d4652dca Mon Sep 17 00:00:00 2001 From: kre Date: Fri, 30 Jun 2017 23:00:40 +0000 Subject: [PATCH] NFC: DEBUG only change - provide an externally visible (to the DEBUG sh internals) interface to one of the internal (private to trace code) functions --- bin/sh/show.c | 10 ++++++++-- bin/sh/show.h | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/sh/show.c b/bin/sh/show.c index 86d10f464a98..ce4a47e581e1 100644 --- a/bin/sh/show.c +++ b/bin/sh/show.c @@ -1,4 +1,4 @@ -/* $NetBSD: show.c,v 1.46 2017/06/17 12:16:16 kre Exp $ */ +/* $NetBSD: show.c,v 1.47 2017/06/30 23:00:40 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)show.c 8.3 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: show.c,v 1.46 2017/06/17 12:16:16 kre Exp $"); +__RCSID("$NetBSD: show.c,v 1.47 2017/06/30 23:00:40 kre Exp $"); #endif #endif /* not lint */ @@ -302,6 +302,12 @@ trargs(char **ap) trace_putc('\n', tracetfile); } +void +trargstr(union node *n) +{ + sharg(n, tracetfile); +} + /* * Beyond here we just have the implementation of all of that diff --git a/bin/sh/show.h b/bin/sh/show.h index 5e9e4c09835c..2c48873404da 100644 --- a/bin/sh/show.h +++ b/bin/sh/show.h @@ -1,4 +1,4 @@ -/* $NetBSD: show.h,v 1.10 2017/05/13 03:26:03 kre Exp $ */ +/* $NetBSD: show.h,v 1.11 2017/06/30 23:00:40 kre Exp $ */ /*- * Copyright (c) 1995 @@ -39,6 +39,7 @@ void showtree(union node *); void trace(const char *, ...); void tracev(const char *, va_list); void trargs(char **); +void trargstr(union node *); void trputc(int); void trputs(const char *); void opentrace(void);