]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: VIR_ERROR/VIR_ERROR0: mark up the remaining ones manually
authorJim Meyering <meyering@redhat.com>
Thu, 20 May 2010 06:28:53 +0000 (08:28 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 20 May 2010 19:36:25 +0000 (21:36 +0200)
Handle concatenated strings manually.

src/esx/esx_vi.c
src/node_device/node_device_udev.c

index 966ef85eb18770312332c8aaab89a3670b044dd1..4d175e97fd62d325cb803b9f767126edf2953399 100644 (file)
@@ -2770,13 +2770,13 @@ esxVI_WaitForTaskCompletion(esxVI_Context *ctx,
 
                 if (taskInfo->cancelable == esxVI_Boolean_True) {
                     if (esxVI_CancelTask(ctx, task) < 0) {
-                        VIR_ERROR0("Cancelable task is blocked by an "
-                                   "unanswered question but cancelation "
-                                   "failed");
+                        VIR_ERROR0(_("Cancelable task is blocked by an "
+                                     "unanswered question but cancelation "
+                                     "failed"));
                     }
                 } else {
-                    VIR_ERROR0("Non-cancelable task is blocked by an "
-                               "unanswered question");
+                    VIR_ERROR0(_("Non-cancelable task is blocked by an "
+                                 "unanswered question"));
                 }
 
                 /* FIXME: Enable error reporting here again */
index ee905373030c5dd1f40ec71798a38eba89768aad..a1ced877eab6c0a18f2937d48a42d82f2e93ffcf 100644 (file)
@@ -122,8 +122,8 @@ static int udevGetDeviceProperty(struct udev_device *udev_device,
      * of the function must also be changed. */
     *property_value = strdup(udev_value);
     if (*property_value == NULL) {
-        VIR_ERROR("Failed to allocate memory for property value for "
-                  "property key '%s' on device with sysname '%s'",
+        VIR_ERROR(_("Failed to allocate memory for property value for "
+                    "property key '%s' on device with sysname '%s'"),
                   property_key, udev_device_get_sysname(udev_device));
         virReportOOMError();
         ret = PROPERTY_ERROR;
@@ -211,8 +211,8 @@ static int udevGetDeviceSysfsAttr(struct udev_device *udev_device,
      * of the function must also be changed. */
     *attr_value = strdup(udev_value);
     if (*attr_value == NULL) {
-        VIR_ERROR("Failed to allocate memory for sysfs attribute value for "
-                  "sysfs attribute '%s' on device with sysname '%s'",
+        VIR_ERROR(_("Failed to allocate memory for sysfs attribute value for "
+                    "sysfs attribute '%s' on device with sysname '%s'"),
                   attr_name, udev_device_get_sysname(udev_device));
         virReportOOMError();
         ret = PROPERTY_ERROR;
@@ -329,8 +329,8 @@ static int udevGenerateDeviceName(struct udev_device *device,
 
     if (virBufferError(&buf)) {
         virBufferFreeAndReset(&buf);
-        VIR_ERROR("Buffer error when generating device name for device "
-                  "with sysname '%s'", udev_device_get_sysname(device));
+        VIR_ERROR(_("Buffer error when generating device name for device "
+                    "with sysname '%s'"), udev_device_get_sysname(device));
         ret = -1;
     }
 
@@ -639,8 +639,8 @@ static int udevProcessSCSIHost(struct udev_device *device ATTRIBUTE_UNUSED,
     filename = basename(def->sysfs_path);
 
     if (!STRPREFIX(filename, "host")) {
-        VIR_ERROR("SCSI host found, but its udev name '%s' does "
-                  "not begin with 'host'", filename);
+        VIR_ERROR(_("SCSI host found, but its udev name '%s' does "
+                    "not begin with 'host'"), filename);
         goto out;
     }
 
@@ -1401,8 +1401,8 @@ static void udevEventHandleCallback(int watch ATTRIBUTE_UNUSED,
 
     udev_fd = udev_monitor_get_fd(udev_monitor);
     if (fd != udev_fd) {
-        VIR_ERROR("File descriptor returned by udev %d does not "
-                  "match node device file descriptor %d", fd, udev_fd);
+        VIR_ERROR(_("File descriptor returned by udev %d does not "
+                    "match node device file descriptor %d"), fd, udev_fd);
         goto out;
     }