10Sstevel@tonic-gate /*
20Sstevel@tonic-gate * CDDL HEADER START
30Sstevel@tonic-gate *
40Sstevel@tonic-gate * The contents of this file are subject to the terms of the
51618Srie * Common Development and Distribution License (the "License").
61618Srie * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate *
80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate * See the License for the specific language governing permissions
110Sstevel@tonic-gate * and limitations under the License.
120Sstevel@tonic-gate *
130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate *
190Sstevel@tonic-gate * CDDL HEADER END
200Sstevel@tonic-gate */
211618Srie
220Sstevel@tonic-gate /*
23*13074SAli.Bahrami@Oracle.COM * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
240Sstevel@tonic-gate */
251618Srie
261618Srie #include <debug.h>
271618Srie #include "_debug.h"
280Sstevel@tonic-gate #include "msg.h"
290Sstevel@tonic-gate
300Sstevel@tonic-gate void
Dbg_args_option(Lm_list * lml,int ndx,int c,char * optarg)319577SRod.Evans@Sun.COM Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg)
320Sstevel@tonic-gate {
331618Srie if (DBG_NOTCLASS(DBG_C_ARGS))
340Sstevel@tonic-gate return;
350Sstevel@tonic-gate
367636SRod.Evans@Sun.COM if (optarg)
377636SRod.Evans@Sun.COM dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg);
387636SRod.Evans@Sun.COM else
397636SRod.Evans@Sun.COM dbg_print(lml, MSG_INTL(MSG_ARG_OPTION), ndx, c);
407636SRod.Evans@Sun.COM }
417636SRod.Evans@Sun.COM
427636SRod.Evans@Sun.COM void
Dbg_args_str2chr(Lm_list * lml,int ndx,const char * opt,int c)437636SRod.Evans@Sun.COM Dbg_args_str2chr(Lm_list *lml, int ndx, const char *opt, int c)
447636SRod.Evans@Sun.COM {
457636SRod.Evans@Sun.COM if (DBG_NOTCLASS(DBG_C_ARGS))
467636SRod.Evans@Sun.COM return;
477636SRod.Evans@Sun.COM
487636SRod.Evans@Sun.COM dbg_print(lml, MSG_INTL(MSG_ARG_STR2CHR), ndx, opt, c);
497636SRod.Evans@Sun.COM }
507636SRod.Evans@Sun.COM
517636SRod.Evans@Sun.COM void
Dbg_args_Wldel(Lm_list * lml,int ndx,const char * opt)527636SRod.Evans@Sun.COM Dbg_args_Wldel(Lm_list *lml, int ndx, const char *opt)
537636SRod.Evans@Sun.COM {
547636SRod.Evans@Sun.COM if (DBG_NOTCLASS(DBG_C_ARGS))
557636SRod.Evans@Sun.COM return;
567636SRod.Evans@Sun.COM
577636SRod.Evans@Sun.COM dbg_print(lml, MSG_INTL(MSG_ARG_WLDEL), ndx, opt);
580Sstevel@tonic-gate }
590Sstevel@tonic-gate
600Sstevel@tonic-gate void
Dbg_args_file(Lm_list * lml,int ndx,char * file)619577SRod.Evans@Sun.COM Dbg_args_file(Lm_list *lml, int ndx, char *file)
620Sstevel@tonic-gate {
631618Srie if (DBG_NOTCLASS(DBG_C_ARGS))
640Sstevel@tonic-gate return;
650Sstevel@tonic-gate
661618Srie dbg_print(lml, MSG_INTL(MSG_ARG_FILE), ndx, file);
670Sstevel@tonic-gate }
68*13074SAli.Bahrami@Oracle.COM
69*13074SAli.Bahrami@Oracle.COM
70*13074SAli.Bahrami@Oracle.COM /*
71*13074SAli.Bahrami@Oracle.COM * Report unrecognized item provided to '-z guidance' option.
72*13074SAli.Bahrami@Oracle.COM */
73*13074SAli.Bahrami@Oracle.COM void
Dbg_args_guidance_unknown(Lm_list * lml,const char * item)74*13074SAli.Bahrami@Oracle.COM Dbg_args_guidance_unknown(Lm_list *lml, const char *item)
75*13074SAli.Bahrami@Oracle.COM {
76*13074SAli.Bahrami@Oracle.COM if (DBG_NOTCLASS(DBG_C_ARGS))
77*13074SAli.Bahrami@Oracle.COM return;
78*13074SAli.Bahrami@Oracle.COM
79*13074SAli.Bahrami@Oracle.COM dbg_print(lml, MSG_INTL(MSG_ARG_NG_UNKNOWN), item);
80*13074SAli.Bahrami@Oracle.COM }
81