~ubuntu-branches/ubuntu/saucy/libvirt/saucy

« back to all changes in this revision

Viewing changes to src/util/virerror.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-05-02 10:21:49 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20130502102149-2ajbdvo0ii64m2qd
Tags: 1.0.5-0ubuntu1
* New upstream release: 
  + Dropped patches:
    - debian/patches/fix-virterror-namechange
    - debian/patches/apparmor-use-apparmor-setfdlabel
    - debian/patches/prevent-lxc-shutdown-host.patch
    - debian/patches/apparmor-no-need-to-check-security-model
    - debian/patches/nonblock-fix.patch
   + Refreshed patches:
    - debian/patches/9002-better_default_uri_virsh.patch
    - debian/patches/enable-kvm-spice.patch
    - debian/patches/patch-qemuMonitorTextGetMigrationStatus-to-intercept.patch
 * debian/patches/Add-sanitytest.py.patch: Add patch to fix missing sanitytest.py
   when building the testsuite.
 * debian/libvirt-dev.install: dont't ship files for static linking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * virerror.c: error handling and reporting code for libvirt
3
3
 *
4
 
 * Copyright (C) 2006, 2008-2012 Red Hat, Inc.
 
4
 * Copyright (C) 2006, 2008-2013 Red Hat, Inc.
5
5
 *
6
6
 * This library is free software; you can redistribute it and/or
7
7
 * modify it under the terms of the GNU Lesser General Public
118
118
              "SSH transport layer", /* 50 */
119
119
              "Lock Space",
120
120
              "Init control",
 
121
              "Identity",
 
122
              "Cgroup",
121
123
    )
122
124
 
123
125
 
525
527
    len = strlen(err->message);
526
528
    if ((err->domain == VIR_FROM_XML) && (err->code == VIR_ERR_XML_DETAIL) &&
527
529
        (err->int1 != 0))
528
 
        fprintf(stderr, "libvir: %s %s %s%s: line %d: %s",
 
530
        fprintf(stderr, "libvirt: %s %s %s%s: line %d: %s",
529
531
                dom, lvl, domain, network, err->int1, err->message);
530
532
    else if ((len == 0) || (err->message[len - 1] != '\n'))
531
 
        fprintf(stderr, "libvir: %s %s %s%s: %s\n",
 
533
        fprintf(stderr, "libvirt: %s %s %s%s: %s\n",
532
534
                dom, lvl, domain, network, err->message);
533
535
    else
534
 
        fprintf(stderr, "libvir: %s %s %s%s: %s",
 
536
        fprintf(stderr, "libvirt: %s %s %s%s: %s",
535
537
                dom, lvl, domain, network, err->message);
536
538
}
537
539
 
647
649
    } else {
648
650
        va_list ap;
649
651
        va_start(ap, fmt);
650
 
        virVasprintf(&str, fmt, ap);
 
652
        ignore_value(virVasprintf(&str, fmt, ap));
651
653
        va_end(ap);
652
654
    }
653
655