Remove new lines from log messages

VIR_DEBUG and VIR_WARN will automatically add a new line to the message,
having "\n" at the end or at the beginning of the message results in
empty lines.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2015-10-27 19:14:01 +01:00
parent 630341a215
commit e4ee043636
13 changed files with 47 additions and 47 deletions

View File

@ -1125,7 +1125,7 @@ do_open(const char *name,
" server %s\n" " server %s\n"
" user %s\n" " user %s\n"
" port %d\n" " port %d\n"
" path %s\n", " path %s",
alias ? alias : name, alias ? alias : name,
NULLSTR(ret->uri->scheme), NULLSTR(ret->uri->server), NULLSTR(ret->uri->scheme), NULLSTR(ret->uri->server),
NULLSTR(ret->uri->user), ret->uri->port, NULLSTR(ret->uri->user), ret->uri->port,

View File

@ -1509,7 +1509,7 @@ virNWFilterDHCPSnoopThread(void *req0)
if (last_displayed_queue - time(0) > 10) { if (last_displayed_queue - time(0) > 10) {
last_displayed_queue = time(0); last_displayed_queue = time(0);
VIR_WARN("Worker thread for interface '%s' has a " VIR_WARN("Worker thread for interface '%s' has a "
"job queue that is too long\n", "job queue that is too long",
req->ifname); req->ifname);
} }
continue; continue;
@ -2017,7 +2017,7 @@ static void
virNWFilterSnoopJoinThreads(void) virNWFilterSnoopJoinThreads(void)
{ {
while (virAtomicIntGet(&virNWFilterSnoopState.nThreads) != 0) { while (virAtomicIntGet(&virNWFilterSnoopState.nThreads) != 0) {
VIR_WARN("Waiting for snooping threads to terminate: %u\n", VIR_WARN("Waiting for snooping threads to terminate: %u",
virAtomicIntGet(&virNWFilterSnoopState.nThreads)); virAtomicIntGet(&virNWFilterSnoopState.nThreads));
usleep(1000 * 1000); usleep(1000 * 1000);
} }

View File

@ -540,7 +540,7 @@ virNWFilterDetermineMissingVarsRec(virNWFilterDefPtr filter,
if (rc) if (rc)
break; break;
} else if (inc) { } else if (inc) {
VIR_DEBUG("Following filter %s\n", inc->filterref); VIR_DEBUG("Following filter %s", inc->filterref);
obj = virNWFilterObjFindByName(&driver->nwfilters, inc->filterref); obj = virNWFilterObjFindByName(&driver->nwfilters, inc->filterref);
if (obj) { if (obj) {

View File

@ -413,7 +413,7 @@ learnIPAddressThread(void *arg)
handle = pcap_open_live(listen_if, BUFSIZ, 0, PKT_TIMEOUT_MS, errbuf); handle = pcap_open_live(listen_if, BUFSIZ, 0, PKT_TIMEOUT_MS, errbuf);
if (handle == NULL) { if (handle == NULL) {
VIR_DEBUG("Couldn't open device %s: %s\n", listen_if, errbuf); VIR_DEBUG("Couldn't open device %s: %s", listen_if, errbuf);
req->status = ENODEV; req->status = ENODEV;
goto done; goto done;
} }
@ -448,13 +448,13 @@ learnIPAddressThread(void *arg)
filter = virBufferContentAndReset(&buf); filter = virBufferContentAndReset(&buf);
if (pcap_compile(handle, &fp, filter, 1, 0) != 0) { if (pcap_compile(handle, &fp, filter, 1, 0) != 0) {
VIR_DEBUG("Couldn't compile filter '%s'.\n", filter); VIR_DEBUG("Couldn't compile filter '%s'", filter);
req->status = EINVAL; req->status = EINVAL;
goto done; goto done;
} }
if (pcap_setfilter(handle, &fp) != 0) { if (pcap_setfilter(handle, &fp) != 0) {
VIR_DEBUG("Couldn't set filter '%s'.\n", filter); VIR_DEBUG("Couldn't set filter '%s'", filter);
req->status = EINVAL; req->status = EINVAL;
pcap_freecode(&fp); pcap_freecode(&fp);
goto done; goto done;
@ -626,7 +626,7 @@ learnIPAddressThread(void *arg)
req->filtername, req->filtername,
req->filterparams); req->filterparams);
VIR_DEBUG("Result from applying firewall rules on " VIR_DEBUG("Result from applying firewall rules on "
"%s with IP addr %s : %d\n", req->ifname, inetaddr, ret); "%s with IP addr %s : %d", req->ifname, inetaddr, ret);
} }
} else { } else {
if (showError) if (showError)
@ -638,7 +638,7 @@ learnIPAddressThread(void *arg)
techdriver->applyDropAllRules(req->ifname); techdriver->applyDropAllRules(req->ifname);
} }
VIR_DEBUG("pcap thread terminating for interface %s\n", req->ifname); VIR_DEBUG("pcap thread terminating for interface %s", req->ifname);
virNWFilterUnlockIface(req->ifname); virNWFilterUnlockIface(req->ifname);

View File

@ -196,7 +196,7 @@ int virNetSocketCheckProtocols(bool *hasIPv4,
freeaddrinfo(ai); freeaddrinfo(ai);
VIR_DEBUG("Protocols: v4 %d v6 %d\n", *hasIPv4, *hasIPv6); VIR_DEBUG("Protocols: v4 %d v6 %d", *hasIPv4, *hasIPv6);
ret = 0; ret = 0;
cleanup: cleanup:

View File

@ -681,7 +681,7 @@ static int virFileLoopDeviceOpen(char **dev_name)
if (virFileLoopDeviceOpenLoopCtl(dev_name, &loop_fd) < 0) if (virFileLoopDeviceOpenLoopCtl(dev_name, &loop_fd) < 0)
return -1; return -1;
VIR_DEBUG("Return from loop-control got fd %d\n", loop_fd); VIR_DEBUG("Return from loop-control got fd %d", loop_fd);
if (loop_fd >= 0) if (loop_fd >= 0)
return loop_fd; return loop_fd;

View File

@ -287,7 +287,7 @@ virHashGrow(virHashTablePtr table, size_t size)
VIR_FREE(oldtable); VIR_FREE(oldtable);
#ifdef DEBUG_GROW #ifdef DEBUG_GROW
VIR_DEBUG("virHashGrow : from %d to %d, %ld elems\n", oldsize, VIR_DEBUG("virHashGrow : from %d to %d, %ld elems", oldsize,
size, nbElem); size, nbElem);
#endif #endif

View File

@ -473,16 +473,16 @@ virNetDevMacVLanVPortProfileCallback(struct nlmsghdr *hdr,
case RTM_DELLINK: case RTM_DELLINK:
case RTM_SETLINK: case RTM_SETLINK:
case RTM_GETLINK: case RTM_GETLINK:
VIR_DEBUG(" IFINFOMSG\n"); VIR_DEBUG(" IFINFOMSG");
VIR_DEBUG(" ifi_family = 0x%02x\n", VIR_DEBUG(" ifi_family = 0x%02x",
((struct ifinfomsg *)data)->ifi_family); ((struct ifinfomsg *)data)->ifi_family);
VIR_DEBUG(" ifi_type = 0x%x\n", VIR_DEBUG(" ifi_type = 0x%x",
((struct ifinfomsg *)data)->ifi_type); ((struct ifinfomsg *)data)->ifi_type);
VIR_DEBUG(" ifi_index = %i\n", VIR_DEBUG(" ifi_index = %i",
((struct ifinfomsg *)data)->ifi_index); ((struct ifinfomsg *)data)->ifi_index);
VIR_DEBUG(" ifi_flags = 0x%04x\n", VIR_DEBUG(" ifi_flags = 0x%04x",
((struct ifinfomsg *)data)->ifi_flags); ((struct ifinfomsg *)data)->ifi_flags);
VIR_DEBUG(" ifi_change = 0x%04x\n", VIR_DEBUG(" ifi_change = 0x%04x",
((struct ifinfomsg *)data)->ifi_change); ((struct ifinfomsg *)data)->ifi_change);
} }
/* DEBUG end */ /* DEBUG end */
@ -544,23 +544,23 @@ virNetDevMacVLanVPortProfileCallback(struct nlmsghdr *hdr,
if (tb[IFLA_IFNAME]) { if (tb[IFLA_IFNAME]) {
ifname = (char *)RTA_DATA(tb[IFLA_IFNAME]); ifname = (char *)RTA_DATA(tb[IFLA_IFNAME]);
VIR_DEBUG("IFLA_IFNAME = %s\n", ifname); VIR_DEBUG("IFLA_IFNAME = %s", ifname);
} }
if (tb[IFLA_OPERSTATE]) { if (tb[IFLA_OPERSTATE]) {
rem = *(unsigned short *)RTA_DATA(tb[IFLA_OPERSTATE]); rem = *(unsigned short *)RTA_DATA(tb[IFLA_OPERSTATE]);
VIR_DEBUG("IFLA_OPERSTATE = %d\n", rem); VIR_DEBUG("IFLA_OPERSTATE = %d", rem);
} }
if (tb[IFLA_VF_PORTS]) { if (tb[IFLA_VF_PORTS]) {
struct nlattr *tb_vf_ports; struct nlattr *tb_vf_ports;
VIR_DEBUG("found IFLA_VF_PORTS\n"); VIR_DEBUG("found IFLA_VF_PORTS");
nla_for_each_nested(tb_vf_ports, tb[IFLA_VF_PORTS], rem) { nla_for_each_nested(tb_vf_ports, tb[IFLA_VF_PORTS], rem) {
VIR_DEBUG("iterating\n"); VIR_DEBUG("iterating");
if (nla_type(tb_vf_ports) != IFLA_VF_PORT) { if (nla_type(tb_vf_ports) != IFLA_VF_PORT) {
VIR_DEBUG("not a IFLA_VF_PORT. skipping\n"); VIR_DEBUG("not a IFLA_VF_PORT. skipping");
continue; continue;
} }
if (nla_parse_nested(tb3, IFLA_PORT_MAX, tb_vf_ports, if (nla_parse_nested(tb3, IFLA_PORT_MAX, tb_vf_ports,
@ -600,7 +600,7 @@ virNetDevMacVLanVPortProfileCallback(struct nlmsghdr *hdr,
uuid = (unsigned char *) uuid = (unsigned char *)
RTA_DATA(tb3[IFLA_PORT_INSTANCE_UUID]); RTA_DATA(tb3[IFLA_PORT_INSTANCE_UUID]);
instance2str(uuid, instance, sizeof(instance)); instance2str(uuid, instance, sizeof(instance));
VIR_DEBUG("IFLA_PORT_INSTANCE_UUID = %s\n", VIR_DEBUG("IFLA_PORT_INSTANCE_UUID = %s",
instance); instance);
} }
@ -615,7 +615,7 @@ virNetDevMacVLanVPortProfileCallback(struct nlmsghdr *hdr,
} }
if (tb3[IFLA_PORT_RESPONSE]) { if (tb3[IFLA_PORT_RESPONSE]) {
VIR_DEBUG("IFLA_PORT_RESPONSE = %d\n", *(uint16_t *) VIR_DEBUG("IFLA_PORT_RESPONSE = %d", *(uint16_t *)
RTA_DATA(tb3[IFLA_PORT_RESPONSE])); RTA_DATA(tb3[IFLA_PORT_RESPONSE]));
} }
} }

View File

@ -407,7 +407,7 @@ virProcessKillPainfully(pid_t pid, bool force)
int virProcessSetAffinity(pid_t pid, virBitmapPtr map) int virProcessSetAffinity(pid_t pid, virBitmapPtr map)
{ {
size_t i; size_t i;
VIR_DEBUG("Set process affinity on %lld\n", (long long)pid); VIR_DEBUG("Set process affinity on %lld", (long long)pid);
# ifdef CPU_ALLOC # ifdef CPU_ALLOC
/* New method dynamically allocates cpu mask, allowing unlimted cpus */ /* New method dynamically allocates cpu mask, allowing unlimted cpus */
int numcpus = 1024; int numcpus = 1024;

View File

@ -507,7 +507,7 @@ xend_op_ext(virConnectPtr xend, const char *path, const char *key, va_list ap)
return -1; return -1;
content = virBufferContentAndReset(&buf); content = virBufferContentAndReset(&buf);
VIR_DEBUG("xend op: %s\n", content); VIR_DEBUG("xend op: %s", content);
ret = http2unix(xend_post(xend, path, content)); ret = http2unix(xend_post(xend, path, content));
VIR_FREE(content); VIR_FREE(content);

View File

@ -169,14 +169,14 @@ testVirHostdevPreparePCIHostdevs_unmanaged(const void *oaque ATTRIBUTE_UNUSED)
count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs); count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs);
/* Test normal functionality */ /* Test normal functionality */
VIR_DEBUG("Test 0 hostdevs\n"); VIR_DEBUG("Test 0 hostdevs");
if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid, if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid,
NULL, 0, 0) < 0) NULL, 0, 0) < 0)
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
/* Test unmanaged hostdevs */ /* Test unmanaged hostdevs */
VIR_DEBUG("Test >=1 unmanaged hostdevs\n"); VIR_DEBUG("Test >=1 unmanaged hostdevs");
if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid, if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid,
hostdevs, nhostdevs, 0) < 0) hostdevs, nhostdevs, 0) < 0)
goto cleanup; goto cleanup;
@ -186,21 +186,21 @@ testVirHostdevPreparePCIHostdevs_unmanaged(const void *oaque ATTRIBUTE_UNUSED)
/* Test conflict */ /* Test conflict */
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs); count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs);
VIR_DEBUG("Test: prepare same hostdevs for same driver/domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for same driver/domain again");
if (!virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid, if (!virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid,
&hostdevs[0], 1, 0)) &hostdevs[0], 1, 0))
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
CHECK_LIST_COUNT(mgr->inactivePCIHostdevs, count2); CHECK_LIST_COUNT(mgr->inactivePCIHostdevs, count2);
VIR_DEBUG("Test: prepare same hostdevs for same driver, diff domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for same driver, diff domain again");
if (!virHostdevPreparePCIDevices(mgr, drv_name, "test_domain1", uuid, if (!virHostdevPreparePCIDevices(mgr, drv_name, "test_domain1", uuid,
&hostdevs[1], 1, 0)) &hostdevs[1], 1, 0))
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
CHECK_LIST_COUNT(mgr->inactivePCIHostdevs, count2); CHECK_LIST_COUNT(mgr->inactivePCIHostdevs, count2);
VIR_DEBUG("Test: prepare same hostdevs for diff driver/domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for diff driver/domain again");
if (!virHostdevPreparePCIDevices(mgr, "test_driver1", dom_name, uuid, if (!virHostdevPreparePCIDevices(mgr, "test_driver1", dom_name, uuid,
&hostdevs[2], 1, 0)) &hostdevs[2], 1, 0))
goto cleanup; goto cleanup;
@ -223,7 +223,7 @@ testVirHostdevReAttachPCIHostdevs_unmanaged(const void *oaque ATTRIBUTE_UNUSED)
for (i = 0; i < nhostdevs; i++) { for (i = 0; i < nhostdevs; i++) {
if (hostdevs[i]->managed != false) { if (hostdevs[i]->managed != false) {
VIR_DEBUG("invalid test\n"); VIR_DEBUG("invalid test");
return -1; return -1;
} }
} }
@ -231,11 +231,11 @@ testVirHostdevReAttachPCIHostdevs_unmanaged(const void *oaque ATTRIBUTE_UNUSED)
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs); count2 = virPCIDeviceListCount(mgr->inactivePCIHostdevs);
VIR_DEBUG("Test 0 hostdevs\n"); VIR_DEBUG("Test 0 hostdevs");
virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, NULL, 0, NULL); virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, NULL, 0, NULL);
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
VIR_DEBUG("Test >=1 unmanaged hostdevs\n"); VIR_DEBUG("Test >=1 unmanaged hostdevs");
virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, virHostdevReAttachPCIDevices(mgr, drv_name, dom_name,
hostdevs, nhostdevs, NULL); hostdevs, nhostdevs, NULL);
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1 - 3); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1 - 3);
@ -261,7 +261,7 @@ testVirHostdevPreparePCIHostdevs_managed(const void *oaque ATTRIBUTE_UNUSED)
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
/* Test normal functionality */ /* Test normal functionality */
VIR_DEBUG("Test >=1 hostdevs\n"); VIR_DEBUG("Test >=1 hostdevs");
if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid, if (virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid,
hostdevs, nhostdevs, 0) < 0) hostdevs, nhostdevs, 0) < 0)
goto cleanup; goto cleanup;
@ -269,19 +269,19 @@ testVirHostdevPreparePCIHostdevs_managed(const void *oaque ATTRIBUTE_UNUSED)
/* Test conflict */ /* Test conflict */
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
VIR_DEBUG("Test: prepare same hostdevs for same driver/domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for same driver/domain again");
if (!virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid, if (!virHostdevPreparePCIDevices(mgr, drv_name, dom_name, uuid,
&hostdevs[0], 1, 0)) &hostdevs[0], 1, 0))
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
VIR_DEBUG("Test: prepare same hostdevs for same driver, diff domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for same driver, diff domain again");
if (!virHostdevPreparePCIDevices(mgr, drv_name, "test_domain1", uuid, if (!virHostdevPreparePCIDevices(mgr, drv_name, "test_domain1", uuid,
&hostdevs[1], 1, 0)) &hostdevs[1], 1, 0))
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
VIR_DEBUG("Test: prepare same hostdevs for diff driver/domain again\n"); VIR_DEBUG("Test: prepare same hostdevs for diff driver/domain again");
if (!virHostdevPreparePCIDevices(mgr, "test_driver1", dom_name, uuid, if (!virHostdevPreparePCIDevices(mgr, "test_driver1", dom_name, uuid,
&hostdevs[2], 1, 0)) &hostdevs[2], 1, 0))
goto cleanup; goto cleanup;
@ -303,18 +303,18 @@ testVirHostdevReAttachPCIHostdevs_managed(const void *oaque ATTRIBUTE_UNUSED)
for (i = 0; i < nhostdevs; i++) { for (i = 0; i < nhostdevs; i++) {
if (hostdevs[i]->managed != true) { if (hostdevs[i]->managed != true) {
VIR_DEBUG("invalid test\n"); VIR_DEBUG("invalid test");
return -1; return -1;
} }
} }
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
VIR_DEBUG("Test 0 hostdevs\n"); VIR_DEBUG("Test 0 hostdevs");
virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, NULL, 0, NULL); virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, NULL, 0, NULL);
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
VIR_DEBUG("Test >=1 hostdevs\n"); VIR_DEBUG("Test >=1 hostdevs");
virHostdevReAttachPCIDevices(mgr, drv_name, dom_name, virHostdevReAttachPCIDevices(mgr, drv_name, dom_name,
hostdevs, nhostdevs, NULL); hostdevs, nhostdevs, NULL);
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1 - 3); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1 - 3);
@ -392,13 +392,13 @@ testVirHostdevUpdateActivePCIHostdevs(const void *oaque ATTRIBUTE_UNUSED)
count1 = virPCIDeviceListCount(mgr->activePCIHostdevs); count1 = virPCIDeviceListCount(mgr->activePCIHostdevs);
VIR_DEBUG("Test 0 hostdevs\n"); VIR_DEBUG("Test 0 hostdevs");
if (virHostdevUpdateActivePCIDevices(mgr, NULL, 0, if (virHostdevUpdateActivePCIDevices(mgr, NULL, 0,
drv_name, dom_name) < 0) drv_name, dom_name) < 0)
goto cleanup; goto cleanup;
CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1); CHECK_LIST_COUNT(mgr->activePCIHostdevs, count1);
VIR_DEBUG("Test >=1 hostdevs\n"); VIR_DEBUG("Test >=1 hostdevs");
if (virHostdevUpdateActivePCIDevices(mgr, hostdevs, nhostdevs, if (virHostdevUpdateActivePCIDevices(mgr, hostdevs, nhostdevs,
drv_name, dom_name) < 0) drv_name, dom_name) < 0)
goto cleanup; goto cleanup;
@ -432,7 +432,7 @@ mymain(void)
# define DO_TEST(fnc) \ # define DO_TEST(fnc) \
do { \ do { \
VIR_DEBUG("\nTesting: %s", #fnc); \ VIR_DEBUG("Testing: %s", #fnc); \
if (virtTestRun(#fnc, fnc, NULL) < 0) \ if (virtTestRun(#fnc, fnc, NULL) < 0) \
ret = -1; \ ret = -1; \
} while (0) } while (0)

View File

@ -105,7 +105,7 @@ checkProtocols(bool *hasIPv4, bool *hasIPv6,
break; break;
} }
VIR_DEBUG("Choose port %d\n", *freePort); VIR_DEBUG("Choose port %d", *freePort);
ret = 0; ret = 0;

View File

@ -92,7 +92,7 @@ testTimeLocalOffset(const void *args)
return -1; return -1;
if (data->offset != actual) { if (data->offset != actual) {
VIR_DEBUG("Expect Offset %ld got %ld\n", VIR_DEBUG("Expect Offset %ld got %ld",
data->offset, actual); data->offset, actual);
return -1; return -1;
} }