mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Fix compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4676 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
31a53c63b5
commit
dcf3a079e5
1 changed files with 1 additions and 1 deletions
2
nbd.c
2
nbd.c
|
@ -388,7 +388,7 @@ int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset, o
|
|||
}
|
||||
|
||||
if (len > sizeof(data)) {
|
||||
LOG("len (%u) is larger than max len (%lu)",
|
||||
LOG("len (%u) is larger than max len (%u)",
|
||||
len, sizeof(data));
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue