mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-13 00:46:03 -06:00
build: delete dead comments
* src/qemu/qemu_driver.c (qemudGetProcessInfo): Clean up. * src/uml/uml_driver.c (umlGetProcessInfo): Likewise. * src/xen/sexpr.c (_string2sexpr): Likewise.
This commit is contained in:
parent
20be699ee3
commit
4b93002358
@ -4316,7 +4316,6 @@ static int qemudGetProcessInfo(unsigned long long *cpuTime, int *lastCpu, int pi
|
||||
}
|
||||
|
||||
if (!(pidinfo = fopen(proc, "r"))) {
|
||||
/*printf("cannot read pid info");*/
|
||||
/* VM probably shut down, so fake 0 */
|
||||
if (cpuTime)
|
||||
*cpuTime = 0;
|
||||
|
@ -1070,7 +1070,6 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, int pid) {
|
||||
}
|
||||
|
||||
if (!(pidinfo = fopen(proc, "r"))) {
|
||||
/*printf("cannot read pid info");*/
|
||||
/* VM probably shut down, so fake 0 */
|
||||
*cpuTime = 0;
|
||||
return 0;
|
||||
|
@ -320,14 +320,6 @@ _string2sexpr(const char *buffer, size_t * end)
|
||||
sexpr_free(tmp);
|
||||
goto error;
|
||||
}
|
||||
#if 0
|
||||
if (0) {
|
||||
char buf[4096];
|
||||
|
||||
sexpr2string(ret, buf, sizeof(buf));
|
||||
printf("%s\n", buffer);
|
||||
}
|
||||
#endif
|
||||
ptr = trim(ptr + tmp_len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user