ia64/xen-unstable

changeset 10162:d809359ab32d

Fix log message written when xenstored corrupts its store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue May 23 16:17:28 2006 +0100 (2006-05-23)
parents 956f7c5b1c1f
children 187180382772
files tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/xenstored_core.c	Tue May 23 16:14:49 2006 +0100
     1.2 +++ b/tools/xenstore/xenstored_core.c	Tue May 23 16:17:28 2006 +0100
     1.3 @@ -451,6 +451,11 @@ static struct node *read_node(struct con
     1.4  
     1.5  static bool write_node(struct connection *conn, const struct node *node)
     1.6  {
     1.7 +	/*
     1.8 +	 * conn will be null when this is called from manual_node.
     1.9 +	 * tdb_context copes with this.
    1.10 +	 */
    1.11 +
    1.12  	TDB_DATA key, data;
    1.13  	void *p;
    1.14  
    1.15 @@ -478,7 +483,7 @@ static bool write_node(struct connection
    1.16  
    1.17  	/* TDB should set errno, but doesn't even set ecode AFAICT. */
    1.18  	if (tdb_store(tdb_context(conn), key, data, TDB_REPLACE) != 0) {
    1.19 -		corrupt(conn, "Write of %s = %s failed", key, data);
    1.20 +		corrupt(conn, "Write of %s failed", key.dptr);
    1.21  		goto error;
    1.22  	}
    1.23  	return true;