diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2007-10-22 10:56:21 +1000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-23 15:49:47 +1000 |
commit | babed5c00225f109d6ebea368ad2deea2abcce32 (patch) | |
tree | dbe48e07afdd57834fae74c5a7e40493ffc78019 /Documentation/lguest/lguest.c | |
parent | 25e82eba3a351cc3b263cae765a8786c827e42af (diff) | |
download | talos-op-linux-babed5c00225f109d6ebea368ad2deea2abcce32.tar.gz talos-op-linux-babed5c00225f109d6ebea368ad2deea2abcce32.zip |
turn err into errx in lguest call sites
These two callsites should really be errx instead of err, since there is
no errno associated with them in the moment they are issued.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Glauber de Oliveira Costa <gcosta@redhat.com>
Diffstat (limited to 'Documentation/lguest/lguest.c')
-rw-r--r-- | Documentation/lguest/lguest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c index c7fc995076cf..276f2f651286 100644 --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c @@ -159,7 +159,7 @@ static unsigned long entry_point(void *start, void *end, if (memcmp(p, "GenuineLguest", strlen("GenuineLguest")) == 0) return (long)p + strlen("GenuineLguest") + page_offset; - err(1, "Is this image a genuine lguest?"); + errx(1, "Is this image a genuine lguest?"); } /* This routine takes an open vmlinux image, which is in ELF, and maps it into @@ -858,7 +858,7 @@ static u32 handle_block_output(int fd, const struct iovec *iov, /* We first check that the read or write is within the length of the * block file. */ if (off >= device_len) - err(1, "Bad offset %llu vs %llu", off, device_len); + errx(1, "Bad offset %llu vs %llu", off, device_len); /* Move to the right location in the block file. This shouldn't fail, * but best to check. */ if (lseek64(dev->fd, off, SEEK_SET) != off) |