lkml.org 
[lkml]   [2009]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] sysfs: sysfs_add_one tells you _where_ the duplicate file is
From
On Thu, Feb 12, 2009 at 08:02, Alex Chiang <achiang@hp.com> wrote:

> sysfs: sysfs_add_one WARNs with full path to duplicate filename
>
> As a debugging aid, it can be useful to know the full path to a
> duplicate file being created in sysfs.

> ret = __sysfs_add_one(acxt, sd);
> - WARN(ret == -EEXIST, KERN_WARNING "sysfs: duplicate filename '%s' "
> - "can not be created\n", sd->s_name);
> + if (ret == -EEXIST) {
> + char path[PATH_MAX];

Isn't that 4k on the stack, and a bit large to put there?

Thanks,
Kay


\
 
 \ /
  Last update: 2009-02-12 10:09    [from the cache]
©2003-2011 Jasper Spaans