Re: 2.4.13-ac5 && vtun not working

David S. Miller
2001-10-31T08:30:45Z

From: <pcg@goof.com ( Marc) (A.) (Lehmann )>
Date: Wed, 31 Oct 2001 01:05:00 +0100

On Mon, Oct 29, 2001 at 05:53:12PM -0800, "David S. Miller" <davem@redhat.com> wrote:
> Basically, don't pass a string lack one "%d" into dev_alloc_name
> because dev_alloc_name() runs sprintf on that string with an
> integer argument.

I fail to follow you - yes, dev_alloc_name calls sprintf on it, but
sprintf works fine on strings without "%d", and dev_alloc_name also works
fine (despite a little suboptimal).

You're right, it should allow the "string has no '%' at all" case
as well. Please, someone send me a patch which does this.

Franks a lot,
David S. Miller
davem@redhat.com