lkml.org 
[lkml]   [2004]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [BK PATCH] add SMBIOS tables to sysfs
From
Date
On Tue, 2004-04-27 at 22:30, Greg KH wrote:
> > + snprintf(sdev->kobj.name, 7, "smbios" );
>
> Try using kobject_set_name() instead, it will do the proper thing if the
> string is bigger than the base kobj.name field.

Looks like this API was added in Aug03. A quick grep through the tree
shows only <10 users. Are there patches pending to convert others, or
are you just having new stuff do this? I know of at least one sysfs
driver (edd) that uses snprintf() that could be converted. I'll send an
updated patch shortly for smbios.c, just curious.

--
Michael

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

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.046 / U:2.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site