[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: fix formatting of DEFINE_DEVICES_ADD


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 07 Aug 2012 20:33:14 +0000
  • Delivery-date: Tue, 07 Aug 2012 20:33:21 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1343984050 -3600
# Node ID 8897bc3d8a3029d6a6e6cba9dfcdc08f94016bd7
# Parent  7697fc6ff332b9d4be4b54a959352fe509573bfb
libxl: fix formatting of DEFINE_DEVICES_ADD

These lines were exactly 80 columns wide, which produces hideous wrap
damage in an 80 column emacs.  Reformat using emacs's C-c \,
which puts the \ in column 72 (by default) where possible.

Whitespace change only.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 7697fc6ff332 -r 8897bc3d8a30 tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c        Fri Aug 03 09:54:09 2012 +0100
+++ b/tools/libxl/libxl_device.c        Fri Aug 03 09:54:10 2012 +0100
@@ -483,19 +483,19 @@ void libxl__multidev_prepared(libxl__egc
  * libxl__add_nics
  */
 
-#define DEFINE_DEVICES_ADD(type)                                               
\
-    void libxl__add_##type##s(libxl__egc *egc, libxl__ao *ao, uint32_t domid,  
\
-                              int start, libxl_domain_config *d_config,        
\
-                              libxl__ao_devices *aodevs)                       
\
-    {                                                                          
\
-        AO_GC;                                                                 
\
-        int i;                                                                 
\
-        int end = start + d_config->num_##type##s;                             
\
-        for (i = start; i < end; i++) {                                        
\
-            libxl__ao_device *aodev = libxl__multidev_prepare(aodevs);         
\
-            libxl__device_##type##_add(egc, domid, 
&d_config->type##s[i-start],\
-                                       aodev);                                 
\
-        }                                                                      
\
+#define DEFINE_DEVICES_ADD(type)                                        \
+    void libxl__add_##type##s(libxl__egc *egc, libxl__ao *ao, uint32_t domid, \
+                              int start, libxl_domain_config *d_config, \
+                              libxl__ao_devices *aodevs)                \
+    {                                                                   \
+        AO_GC;                                                          \
+        int i;                                                          \
+        int end = start + d_config->num_##type##s;                      \
+        for (i = start; i < end; i++) {                                 \
+            libxl__ao_device *aodev = libxl__multidev_prepare(aodevs);  \
+            libxl__device_##type##_add(egc, domid, 
&d_config->type##s[i-start], \
+                                       aodev);                          \
+        }                                                               \
     }
 
 DEFINE_DEVICES_ADD(disk)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.