From bbbbeb6a4653ba7b87954d99de366495e8f4d003 Mon Sep 17 00:00:00 2001 From: plunky Date: Tue, 6 Nov 2007 21:35:52 +0000 Subject: [PATCH] use stderr for printing usage messages --- usr.bin/sdpquery/search.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/sdpquery/search.c b/usr.bin/sdpquery/search.c index f002481484e3..c48192a9aa78 100644 --- a/usr.bin/sdpquery/search.c +++ b/usr.bin/sdpquery/search.c @@ -1,4 +1,4 @@ -/* $NetBSD: search.c,v 1.5 2007/11/04 09:02:47 plunky Exp $ */ +/* $NetBSD: search.c,v 1.6 2007/11/06 21:35:52 plunky Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -55,12 +55,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: search.c,v 1.5 2007/11/04 09:02:47 plunky Exp $ + * $Id: search.c,v 1.6 2007/11/06 21:35:52 plunky Exp $ * $FreeBSD: src/usr.sbin/bluetooth/sdpcontrol/search.c,v 1.4 2005/05/27 19:11:33 emax Exp $ */ #include -__RCSID("$NetBSD: search.c,v 1.5 2007/11/04 09:02:47 plunky Exp $"); +__RCSID("$NetBSD: search.c,v 1.6 2007/11/06 21:35:52 plunky Exp $"); #include #include @@ -661,9 +661,9 @@ do_sdp_search(bdaddr_t *laddr, bdaddr_t *raddr, int argc, char const **argv) return EXIT_SUCCESS; usage: - printf("Known services:\n"); + fprintf(stderr, "Known services:\n"); for (s = services ; s->name != NULL ; s++) - printf("\t%s\t%s\n", s->name, s->description); + fprintf(stderr, "\t%s\t%s\n", s->name, s->description); return EXIT_FAILURE; } /* do_sdp_search */