daemon: Don't need to prefix error messages with the command name.
authorRichard Jones <rjones@redhat.com>
Fri, 12 Feb 2010 14:06:25 +0000 (14:06 +0000)
committerRichard Jones <rjones@redhat.com>
Fri, 12 Feb 2010 16:49:00 +0000 (16:49 +0000)
commite9c37113104c1cfb234535adc9b52ad3880a41ce
treea3367b5e700b9b455340243d7c66c45a5adf6067
parent9b3ef85a3d1b43faa98bb5dc922f8a273a5e1dde
daemon: Don't need to prefix error messages with the command name.

The RPC stubs already prefix the command name to error messages.
The daemon doesn't have to do this.  As a (small) benefit this also
makes the daemon slightly smaller.

Code in the daemon such as:

  if (argv[0] == NULL) {
    reply_with_error ("passed an empty list");
    return NULL;
  }

now results in error messages like this:

  ><fs> command ""
  libguestfs: error: command: passed an empty list

(whereas previously you would have seen ..command: command:..)
42 files changed:
daemon/blkid.c
daemon/blockdev.c
daemon/cmp.c
daemon/command.c
daemon/cpmv.c
daemon/daemon.h
daemon/dd.c
daemon/debug.c
daemon/df.c
daemon/dir.c
daemon/dmesg.c
daemon/du.c
daemon/ext2.c
daemon/fallocate.c
daemon/file.c
daemon/fill.c
daemon/find.c
daemon/fsck.c
daemon/glob.c
daemon/grub.c
daemon/hexdump.c
daemon/initrd.c
daemon/inotify.c
daemon/link.c
daemon/lvm.c
daemon/mkfs.c
daemon/mknod.c
daemon/mount.c
daemon/ntfs.c
daemon/parted.c
daemon/realpath.c
daemon/scrub.c
daemon/sfdisk.c
daemon/stat.c
daemon/strings.c
daemon/swap.c
daemon/tar.c
daemon/upload.c
daemon/wc.c
daemon/xattr.c
daemon/zerofree.c
src/generator.ml