diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-09-28 08:29:07 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-09-28 08:29:07 +0000 |
commit | 4746c04a21cd3a8739a8593f19f6929e792dc5f8 (patch) | |
tree | ce03caadcc65002e41dff078f5a213d4e1e2706c /usr.sbin/vmd/vioqcow2.c | |
parent | 187cb9db18d08fc2f9cf39b1cfbbc62d00d415dc (diff) |
Compress qcow2 open debug messages into a single line
Please avoid tabs and excessive multi-line information with log_debug
as it also goes to syslog.
No functional change.
Diffstat (limited to 'usr.sbin/vmd/vioqcow2.c')
-rw-r--r-- | usr.sbin/vmd/vioqcow2.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/vmd/vioqcow2.c b/usr.sbin/vmd/vioqcow2.c index ec2bbedd7df..b348804756c 100644 --- a/usr.sbin/vmd/vioqcow2.c +++ b/usr.sbin/vmd/vioqcow2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioqcow2.c,v 1.3 2018/09/19 04:29:21 ccardenas Exp $ */ +/* $OpenBSD: vioqcow2.c,v 1.4 2018/09/28 08:29:06 reyk Exp $ */ /* * Copyright (c) 2018 Ori Bernstein <ori@eigenstate.org> @@ -260,10 +260,13 @@ qc2_open(struct qcdisk *disk, int fd) disk->end = st.st_size; - log_debug("opened qcow2 disk version %d:", version); - log_debug("size:\t%lld", disk->disksz); - log_debug("end:\t%lld", disk->end); - log_debug("nsnap:\t%d", disk->nsnap); + log_debug("%s: qcow2 disk version %d size %lld end %lld snap %d", + __func__, + version, + disk->disksz, + disk->end, + disk->nsnap); + return 0; error: qc2_close(disk); |