* src/qemu/qemu_driver.c (qemudGetProcessInfo): Clean up.
* src/uml/uml_driver.c (umlGetProcessInfo): Likewise.
* src/xen/sexpr.c (_string2sexpr): Likewise.
}
if (!(pidinfo = fopen(proc, "r"))) {
- /*printf("cannot read pid info");*/
/* VM probably shut down, so fake 0 */
if (cpuTime)
*cpuTime = 0;
}
if (!(pidinfo = fopen(proc, "r"))) {
- /*printf("cannot read pid info");*/
/* VM probably shut down, so fake 0 */
*cpuTime = 0;
return 0;
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);
}