diff options
Diffstat (limited to 'Documentation/lguest')
-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, | |||
159 | if (memcmp(p, "GenuineLguest", strlen("GenuineLguest")) == 0) | 159 | if (memcmp(p, "GenuineLguest", strlen("GenuineLguest")) == 0) |
160 | return (long)p + strlen("GenuineLguest") + page_offset; | 160 | return (long)p + strlen("GenuineLguest") + page_offset; |
161 | 161 | ||
162 | err(1, "Is this image a genuine lguest?"); | 162 | errx(1, "Is this image a genuine lguest?"); |
163 | } | 163 | } |
164 | 164 | ||
165 | /* This routine takes an open vmlinux image, which is in ELF, and maps it into | 165 | /* 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, | |||
858 | /* We first check that the read or write is within the length of the | 858 | /* We first check that the read or write is within the length of the |
859 | * block file. */ | 859 | * block file. */ |
860 | if (off >= device_len) | 860 | if (off >= device_len) |
861 | err(1, "Bad offset %llu vs %llu", off, device_len); | 861 | errx(1, "Bad offset %llu vs %llu", off, device_len); |
862 | /* Move to the right location in the block file. This shouldn't fail, | 862 | /* Move to the right location in the block file. This shouldn't fail, |
863 | * but best to check. */ | 863 | * but best to check. */ |
864 | if (lseek64(dev->fd, off, SEEK_SET) != off) | 864 | if (lseek64(dev->fd, off, SEEK_SET) != off) |