[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen-unstable] [qemu-dm] Fix debugging output in
From: Xen patchbot-unstable <patchbot-unstable () lists ! xensource ! com>
Date: 2007-12-21 0:50:08
Message-ID: 200712210050.lBL0o9Kl029377 () xenbits ! xensource ! com
[Download RAW message or body]
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1198169564 0
# Node ID c433ebd2a9bb5b520309440201e03bbf29880008
# Parent 741ecee8ccc0b753b5e341bed8e7f3069619517a
[qemu-dm] Fix debugging output in tpm tis model
This fixes the debugging output.
Also I am tweaking on the code trying to establish a connection with
the external vTPM.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
---
tools/ioemu/hw/tpm_tis.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff -r 741ecee8ccc0 -r c433ebd2a9bb tools/ioemu/hw/tpm_tis.c
--- a/tools/ioemu/hw/tpm_tis.c Thu Dec 20 13:48:27 2007 +0000
+++ b/tools/ioemu/hw/tpm_tis.c Thu Dec 20 16:52:44 2007 +0000
@@ -270,11 +270,11 @@ static int create_local_socket(tpmState
}
#ifdef DEBUG_TPM
if (success)
- fprintf(logfile,"Successfully connected using local socket "
- LOCAL_SOCKET_PATH ".\n");
+ fprintf(logfile," Successfully connected using local socket"
+ "%s.\n",addr.sun_path);
else
- fprintf(logfile,"Could not connect to local socket "
- LOCAL_SOCKET_PATH ".\n");
+ fprintf(logfile," Could not connect to local socket "
+ "%s.\n",addr.sun_path);
#endif
} else {
success = 0;
@@ -905,9 +905,10 @@ void tpm_tis_init(SetIRQFunc *set_irq, v
register_savevm("tpm-tis", 0, 1, tpm_save, tpm_load, s);
+ open_vtpm_channel(s);
for (c = 0; !IS_COMM_WITH_VTPM(s) && (c < 5); c++) {
+ sleep(1);
open_vtpm_channel(s);
- sleep(1);
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic