lkml.org 
[lkml]   [2006]   [Jun]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 20 Jun 2006 21:30:39 -0700
From"H. Peter Anvin" <>
SubjectRe: [PATCH] Implement kasprintf
Andrew Morton wrote:
> On Tue, 20 Jun 2006 23:04:44 -0400
> Kyle McMartin <kyle@parisc-linux.org> wrote:
> 
>> On Tue, Jun 20, 2006 at 04:57:16PM -0700, Jeremy Fitzhardinge wrote:
>>> +char *kasprintf(gfp_t gfp, const char *fmt, ...)
>>> +{
>> Why not just asprintf? We don't have ksprintf... 
> asprintf() doesn't take a gfp_t arg.
> 

Or, more generally: if we change the API, change the name.  kmalloc() is 
different from malloc() as it is invoked differently, as is kasprintf().
printk() was arguably a mistake, although it's semi-justified a posteori 
since it takes the priority pseudo-argument now.

	-hpa
-
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: 2006-06-21 06:33    [from the cache]
©2003-2008