summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-15 11:50:29 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-15 11:50:29 +0100
commit6c87f5aff12d418386f6d060883f61335216c4a2 (patch)
treeacefeaf22d66aadc881498ec1644ce894c3f1ad7 /src
parent36ae65709f3c733968d865122a468e2bc5e9746f (diff)
vdagent-virtio-port: Improve error logging
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vdagent-virtio-port.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vdagent-virtio-port.c b/src/vdagent-virtio-port.c
index f56428e..05bd344 100644
--- a/src/vdagent-virtio-port.c
+++ b/src/vdagent-virtio-port.c
@@ -388,12 +388,14 @@ static void vdagent_virtio_port_do_read(struct vdagent_virtio_port **vportp)
vport->chunk_header_read += n;
if (vport->chunk_header_read == sizeof(vport->chunk_header)) {
if (vport->chunk_header.size > VD_AGENT_MAX_DATA_SIZE) {
- syslog(LOG_ERR, "chunk size too large");
+ syslog(LOG_ERR, "chunk size %u too large",
+ vport->chunk_header.size);
vdagent_virtio_port_destroy(vportp);
return;
}
if (vport->chunk_header.port > VDP_LAST_PORT) {
- syslog(LOG_ERR, "chunk port out of range");
+ syslog(LOG_ERR, "chunk port %u out of range",
+ vport->chunk_header.port);
vdagent_virtio_port_destroy(vportp);
return;
}