diff options
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/tools/lintdump/lintdump.1 | 8 | ||||
| -rw-r--r-- | usr/src/tools/lintdump/lintdump.c | 8 |
2 files changed, 9 insertions, 7 deletions
diff --git a/usr/src/tools/lintdump/lintdump.1 b/usr/src/tools/lintdump/lintdump.1 index 00747e8004..4eaa59ba80 100644 --- a/usr/src/tools/lintdump/lintdump.1 +++ b/usr/src/tools/lintdump/lintdump.1 @@ -18,9 +18,9 @@ .\" " .\" " CDDL HEADER END .\" " -.\" "Copyright 2006 Sun Microsystems, Inc. All rights reserved. +.\" "Copyright 2007 Sun Microsystems, Inc. All rights reserved. .\" "Use is subject to license terms." -.TH lintdump 1 "04 Jun 2006" +.TH lintdump 1 "28 Jun 2007" .I lintdump \- dump the contents of one or more lint libraries .SH SYNOPSIS @@ -93,9 +93,9 @@ Edition. In particular, properties contained in the record that cannot be conveyed in C are displayed in angle brackets following definition or declaration; a full list of these and their meanings are given below in RECORD PROPERTIES. In addition, note that some structures or unions may -only be known by a numeric \fIID\fP, and thus output as "<struct tag +only be known by a numeric \fIID\fP, and thus output as "struct <tag \fIID\fP>". This ID can be used to pair the structure with its definition -via structure records. If -i is used, then "<struct anon>" is printed +via structure records. If -i is used, then "struct <anon>" is printed instead. .RE .LP diff --git a/usr/src/tools/lintdump/lintdump.c b/usr/src/tools/lintdump/lintdump.c index 429f8b2378..628ccb1cb0 100644 --- a/usr/src/tools/lintdump/lintdump.c +++ b/usr/src/tools/lintdump/lintdump.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -262,7 +262,9 @@ print_pass(const char *lnname, FILE *fp) if (line.decflag & ~(LSU)) info("??? "); - info("struct %s ", name); + info("struct "); + if (name[0] != '.') + info("%s ", name); if (showids) info("<tag %lu> ", line.type.extra.ty); info("{ \n"); @@ -335,7 +337,7 @@ print_atype(ATYPE *atp, int nargs, ATYPE *args, const char *name) } break; default: - info(basetypes[basetype]); + info("%s", basetypes[basetype]); }; print_mods(name, atp, nargs, args, 14); |
