On Mon, Jun 29, 2015 at 04:56:26PM -0400, John Snow wrote:
> Minor cleanup.
> 
> Signed-off-by: John Snow <js...@redhat.com>
> ---
>  hw/ide/ahci.c      | 2 +-
>  hw/vfio/platform.c | 2 +-
>  net/tap-linux.c    | 4 ++--
>  3 files changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>

Laszlo Ersek suggested a compile-time check (e.g. BUILD_BUG_ON()).  Have
you looked into this?

Perhaps something along the lines of:

BUILD_BUG_ON(__builtin_constant_p(fmt) &&
             __builtin_strlen(fmt) > 0 &&
             fmt[__builtin_strlen(fmt) - 1] == '\n')

Attachment: pgpZdKCALYv6S.pgp
Description: PGP signature

Reply via email to