summary refs log tree commit diff stats
path: root/linux-user/arm/cpu_loop.c
diff options
context:
space:
mode:
authorEyal Moscovici <eyal.moscovici@oracle.com>2020-05-13 16:36:26 +0300
committerEric Blake <eblake@redhat.com>2020-05-18 11:02:05 -0500
commit43d589b074370ebc9b340340b5f641b385da9df8 (patch)
tree48f6ef903c5070a8a56b3d80358a17cf87f1a532 /linux-user/arm/cpu_loop.c
parent0eaf453ebf6788885fbb5d40426b154ef8805407 (diff)
downloadfocaccia-qemu-43d589b074370ebc9b340340b5f641b385da9df8.tar.gz
focaccia-qemu-43d589b074370ebc9b340340b5f641b385da9df8.zip
qemu_img: add cvtnum_full to print error reports
All calls to cvtnum check the return value and print the same error
message more or less. And so error reporting moved to cvtnum_full to
reduce code duplication and provide a single error
message. Additionally, cvtnum now wraps cvtnum_full with the existing
default range of 0 to MAX_INT64.

Acked-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Eyal Moscovici <eyal.moscovici@oracle.com>
Message-Id: <20200513133629.18508-2-eyal.moscovici@oracle.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: fix printf formatting, avoid trailing space, change error wording,
reformat commit message]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'linux-user/arm/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions