X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fxattr.c;h=cb700d77702dd8a77c002c4494a7cf0267cb05bf;hb=7828f4dfe3d5ff4d086261218908c8da37bb9d97;hp=bbccc5c58dfa1bb32b97f4a53c9b7e2c7f7b6afb;hpb=3a3836b933b80c4f9f2c767fda4f8b459f998db2;p=libguestfs.git diff --git a/daemon/xattr.c b/daemon/xattr.c index bbccc5c..cb700d7 100644 --- a/daemon/xattr.c +++ b/daemon/xattr.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -405,28 +405,6 @@ do_lxattrlist (const char *path, char *const *names) } } - /* If verbose, debug what we're about to send back. */ - if (verbose) { - fprintf (stderr, "lxattrlist: returning: [\n"); - for (k = 0; k < ret->guestfs_int_xattr_list_len; ++k) { - const guestfs_int_xattr *entry = &ret->guestfs_int_xattr_list_val[k]; - if (STRNEQ (entry[0].attrname, "")) { - fprintf (stderr, "ERROR: expecting empty attrname at k = %zu\n", k); - break; - } - fprintf (stderr, " %zu: special attrval = %s\n", - k, entry[0].attrval.attrval_val); - for (i = 1; k+i < ret->guestfs_int_xattr_list_len; ++i) { - if (STREQ (entry[i].attrname, "")) - break; - fprintf (stderr, " name %s, value length %d\n", - entry[i].attrname, entry[i].attrval.attrval_len); - } - k += i-1; - } - fprintf (stderr, "]\n"); - } - return ret; error: