Re: An alternative way of populating /proc

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Tue, 11 Apr 2000 19:42:32 +0100 (BST)


On Tue, 11 Apr 2000, Richard Gooch wrote:

> > > create_proc_entries(NULL,
> > > "test:{bar:{x:%d,y:%d,z:%d},foo:%f}",
> > > &x, &y, &z, foo_fun);
> >
> > Thinking further about it, could the %'s become something
> > else? It'd be nice to be able to make these strings with
> > sprintf().
>
> No problem. Use "%%".

It'd be nice not to have to bother. And I have,
on occasion, used sprintf to make format strings
for itself.

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/