2011/5/24 Daniel P. Berrange <berrange@xxxxxxxxxx>: > * src/libvirt.c: Add further debug lines in helper APIs for > Âmigration > * src/qemu/qemu_migration.c: Add debug lines for all internal > Âmigration API parameters > --- > Âsrc/libvirt.c       |  19 ++++++++++++++++- > Âsrc/qemu/qemu_migration.c |  47 ++++++++++++++++++++++++++++++++++++++++++++- > Â2 files changed, 63 insertions(+), 3 deletions(-) > @@ -1292,6 +1304,10 @@ static int doNativeMigrate(struct qemud_driver *driver, >   qemuDomainObjPrivatePtr priv = vm->privateData; >   unsigned int background_flags = QEMU_MONITOR_MIGRATE_BACKGROUND; >   qemuMigrationCookiePtr mig = NULL; > +  ÂVIR_DEBUG("driver=%p, vm=%p, uri=%s, cookiein=%s, cookieinlen=%d, " > +       Â"cookieout=%p, cookieoutlen=%p, flags=%u, dname=%s, resource=%lu", > +       Âdriver, vm, uri, NULLSTR(cookiein), cookieinlen, > +       Âcookieout, cookieoutlen, flags, dname, resource); dname can be NULL, needs to be NULLSTR(dname). > @@ -1685,6 +1705,10 @@ static int doPeer2PeerMigrate2(struct qemud_driver *driver, >   virErrorPtr orig_err = NULL; >   int cancelled; >   virStreamPtr st = NULL; > +  ÂVIR_DEBUG("driver=%p, sconn=%p, dconn=%p, vm=%p, dconnuri=%s, " > +       Â"flags=%lu, dname=%s, resource=%lu", > +       Âdriver, sconn, dconn, vm, NULLSTR(dconnuri), > +       Âflags, dname, resource); dname can be NULL, needs to be NULLSTR(dname). > @@ -1824,8 +1848,11 @@ static int doPeer2PeerMigrate3(struct qemud_driver *driver, >   virErrorPtr orig_err = NULL; >   int cancelled; >   virStreamPtr st = NULL; > +  ÂVIR_DEBUG("driver=%p, sconn=%p, dconn=%p, vm=%p, xmlin=%s, " > +       Â"dconnuri=%s, uri=%s, flags=%lu, dname=%s, resource=%lu", > +       Âdriver, sconn, dconn, vm, NULLSTR(xmlin), > +       ÂNULLSTR(dconnuri), NULLSTR(uri), flags, dname, resource); dname can be NULL, needs to be NULLSTR(dname). > @@ -1983,6 +2010,10 @@ static int doPeer2PeerMigrate(struct qemud_driver *driver, >   virConnectPtr dconn = NULL; >   bool p2p; >   bool v3; > +  ÂVIR_DEBUG("driver=%p, sconn=%p, vm=%p, xmlin=%s, dconnuri=%s, " > +       Â"uri=%s, flags=%lu, dname=%s, resource=%lu", > +       Âdriver, sconn, vm, NULLSTR(xmlin), NULLSTR(dconnuri), > +       ÂNULLSTR(uri), flags, dname, resource); And again dname. > @@ -2053,6 +2084,12 @@ int qemuMigrationPerform(struct qemud_driver *driver, >   int ret = -1; >   int resume = 0; >   qemuDomainObjPrivatePtr priv = vm->privateData; > +  ÂVIR_DEBUG("driver=%p, conn=%p, vm=%p, xmlin=%s, dconnuri=%s, " > +       Â"uri=%s, cookiein=%s, cookieinlen=%d, cookieout=%p, " > +       Â"cookieoutlen=%p, flags=%lu, dname=%s, resource=%lu, v3proto=%d", > +       Âdriver, conn, vm, NULLSTR(xmlin), NULLSTR(dconnuri), > +       ÂNULLSTR(uri), NULLSTR(cookiein), cookieinlen, > +       Âcookieout, cookieoutlen, flags, dname, resource, v3proto); And another dname. ACK, with this dnames wrapped in NULLSTR. Matthias -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list