All of lore.kernel.org
 help / color / mirror / Atom feed
* Just a cosmetic question about grub_vprintf()?
@ 2009-11-22 13:10 rubisher
  2009-11-23 14:44 ` Robert Millan
  0 siblings, 1 reply; 6+ messages in thread
From: rubisher @ 2009-11-22 13:10 UTC (permalink / raw)
  To: The development of GRUB 2

Hello all,

I am just reading kernel/misc.c file and read grub_vsprintf() definition as:
int
grub_vsprintf (char *str, const char *fmt, va_list args)

which is used by:
int
grub_vprintf (const char *fmt, va_list args)
{
   int ret;

   ret = grub_vsprintf (0, fmt, args);
   return ret;
}

But as far as the 1st parameter of grub_vsprintf is a pointer,
wouldn't it be better to write:
--- kern/misc.c.orig	2009-11-22 13:07:22.000000000 +0000
+++ kern/misc.c	2009-11-22 13:07:51.000000000 +0000
@@ -160,7 +160,7 @@
  {
    int ret;

-  ret = grub_vsprintf (0, fmt, args);
+  ret = grub_vsprintf (NULL, fmt, args);
    return ret;
  }

Tia,
	J.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-09 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-22 13:10 Just a cosmetic question about grub_vprintf()? rubisher
2009-11-23 14:44 ` Robert Millan
2009-11-28 18:21   ` rubisher
2009-11-29  9:19     ` Colin Watson
2009-12-05 21:58       ` rubisher
2009-12-09 21:36         ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.