This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build Pass from file name hyphen->underscore


On 12/03/2009 10:21 AM, Masami Hiramatsu wrote:
> Hi,
> 
> I'm not sure why don't we just add below code ;-)
> 
> for (s = modname; *s != '\0'; s++)
>     if (*s == '-')
>         *s = '_';

We could, at the cost of surprising the user.  With '-m', the user has
said, "hey, don't use the standard stap_XXXX module name, I need the
exact module name FOO-BAR".  Then, behind the user's back, we change
'FOO-BAR' to 'FOO_BAR'.  The user then goes looking for 'FOO-BAR', and
he won't find it.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]