All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] grub2: commands/cmp.c: grub_cmd_cmp()
Date: Thu, 30 Jun 2005 12:01:42 +0200	[thread overview]
Message-ID: <87irzwf9ix.fsf@student.han.nl> (raw)
In-Reply-To: <42C2C55F.9010203@yahoo.fr> (Vincent Pelletier's message of "Wed, 29 Jun 2005 17:59:27 +0200")

Vincent Pelletier <subdino2004@yahoo.fr> writes:

Hi Vincent,

Thanks for your patch.  It looks ok to me.  A few small comments...


> 2005-06-29  Vincent Pelletier  <subdino2004@yahoo.fr>
>
>     * commands/cmp.c
>       (grub_cmd_cmp): Close the right file at the right time.  Compare
>       only data just read.  Don't report files of different size as
>       identical.  (BLOCK_SIZE): New macro.

The (BLOCK_SIZE) stuff should be put on a new line.

I think BUFFER_SIZE would be a better name.  Another size can be
used.  Perhaps it is better to use a bigger buffer size?


>  
>    if (grub_file_size (file1) != grub_file_size (file2))
> -    grub_printf ("Differ in size: %d [%s], %d [%s]\n", 
> -		 grub_file_size (file1), args[0], 
> -		 grub_file_size (file2), args[1]);
> +    {
> +      grub_printf ("Differ in size: %d [%s], %d [%s]\n", 
> +		   grub_file_size (file1), args[0], 
> +		   grub_file_size (file2), args[1]);
> +    }

Huh?

Thanks,
Marco




  reply	other threads:[~2005-06-30 10:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29 11:33 grub2: commands/cmp.c: grub_cmd_cmp() Rodrigo Steinmüller Wanderley
2005-06-29 14:57 ` Hollis Blanchard
2005-06-29 15:21 ` [Bulk] " Vincent Pelletier
2005-06-29 15:59   ` [PATCH] " Vincent Pelletier
2005-06-30 10:01     ` Marco Gerards [this message]
2005-06-30 10:27       ` [Bulk] " Vincent Pelletier
2005-07-02 10:19         ` [Bulk] " Vincent Pelletier
2005-07-02 10:50           ` [PATCH v2] " Vincent Pelletier
2005-06-30  0:09   ` [Bulk] grub2: " Rodrigo Steinmüller Wanderley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irzwf9ix.fsf@student.han.nl \
    --to=metgerards@student.han.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.