[LINUX] Fix code indentation in Linux drivers.
authorkfraser@dhcp93.uk.xensource.com <kfraser@dhcp93.uk.xensource.com>
Mon, 12 Jun 2006 17:32:47 +0000 (18:32 +0100)
committerkfraser@dhcp93.uk.xensource.com <kfraser@dhcp93.uk.xensource.com>
Mon, 12 Jun 2006 17:32:47 +0000 (18:32 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
18 files changed:
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
linux-2.6-xen-sparse/drivers/xen/blkback/common.h
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/drivers/xen/blkfront/block.h
linux-2.6-xen-sparse/drivers/xen/char/mem.c
linux-2.6-xen-sparse/drivers/xen/console/console.c
linux-2.6-xen-sparse/drivers/xen/core/gnttab.c
linux-2.6-xen-sparse/drivers/xen/core/reboot.c
linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c
linux-2.6-xen-sparse/drivers/xen/netback/common.h
linux-2.6-xen-sparse/drivers/xen/netback/interface.c
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
linux-2.6-xen-sparse/drivers/xen/tpmback/common.h
linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c

index 3a57fabbd0a1da04fae27d6a3ad2a55c463c291c..da1a7eca1ca6935c47dca1b62e025433fe73a950 100644 (file)
@@ -222,7 +222,7 @@ static int increase_reservation(unsigned long nr_pages)
                /* Update P->M and M->P tables. */
                set_phys_to_machine(pfn, frame_list[i]);
                xen_machphys_update(frame_list[i], pfn);
-            
+
                /* Link back into the page tables if not highmem. */
                if (pfn < max_low_pfn) {
                        int ret;
@@ -382,18 +382,17 @@ static void watch_target(struct xenbus_watch *watch,
        if (err != 1) {
                /* This is ok (for domain0 at least) - so just return */
                return;
-       } 
-        
+       }
+
        /* The given memory/target value is in KiB, so it needs converting to
-          pages.  PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10.
-       */
+        * pages. PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10.
+        */
        set_new_target(new_target >> (PAGE_SHIFT - 10));
-    
 }
 
 static int balloon_init_watcher(struct notifier_block *notifier,
-                                unsigned long event,
-                                void *data)
+                               unsigned long event,
+                               void *data)
 {
        int err;
 
@@ -402,11 +401,10 @@ static int balloon_init_watcher(struct notifier_block *notifier,
                printk(KERN_ERR "Failed to set balloon watcher\n");
 
        return NOTIFY_DONE;
-    
 }
 
 static int balloon_write(struct file *file, const char __user *buffer,
-                         unsigned long count, void *data)
+                        unsigned long count, void *data)
 {
        char memstring[64], *endchar;
        unsigned long long target_bytes;
@@ -430,7 +428,7 @@ static int balloon_write(struct file *file, const char __user *buffer,
 }
 
 static int balloon_read(char *page, char **start, off_t off,
-                        int count, int *eof, void *data)
+                       int count, int *eof, void *data)
 {
        int len;
 
index 16390e2c8d2b8ff7a14512a94be2bedbfc63de99..ace6dbcc37cf7952f0a86d09a076081252beaff8 100644 (file)
@@ -110,7 +110,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
                                 blkif_request_t *req,
                                 pending_req_t *pending_req);
 static void make_response(blkif_t *blkif, unsigned long id, 
-                          unsigned short op, int st);
+                         unsigned short op, int st);
 
 /******************************************************************
  * misc small helpers
@@ -434,7 +434,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
                        bio = biolist[nbio++] = bio_alloc(GFP_KERNEL, nseg-i);
                        if (unlikely(bio == NULL))
                                goto fail_put_bio;
-                
+
                        bio->bi_bdev    = preq.bdev;
                        bio->bi_private = pending_req;
                        bio->bi_end_io  = end_block_io_op;
@@ -471,7 +471,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
 
 
 static void make_response(blkif_t *blkif, unsigned long id, 
-                          unsigned short op, int st)
+                         unsigned short op, int st)
 {
        blkif_response_t *resp;
        unsigned long     flags;
index d013d74d2fc6c4c84bd9b8ffb97971a74aff08b4..0ba7c588dd68b9cefa01d26de8e00f8c82e78779 100644 (file)
@@ -45,8 +45,9 @@
 #include <xen/gnttab.h>
 #include <xen/driver_util.h>
 
-#define DPRINTK(_f, _a...) pr_debug("(file=%s, line=%d) " _f, \
-                                    __FILE__ , __LINE__ , ## _a )
+#define DPRINTK(_f, _a...)                     \
+       pr_debug("(file=%s, line=%d) " _f,      \
+                __FILE__ , __LINE__ , ## _a )
 
 struct vbd {
        blkif_vdev_t   handle;      /* what the domain refers to this vbd as */
index 9a7703dcfa8a74d21672f553114edd1c8bfdb5aa..433d7389fe52fc09f3932fa61370aeb3083e4ca7 100644 (file)
@@ -318,7 +318,7 @@ static void connect(struct blkfront_info *info)
        err = xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
        if (err) {
                xenbus_dev_fatal(info->xbdev, err, "xlvbd_add at %s",
-                                info->xbdev->otherend);
+                                info->xbdev->otherend);
                return;
        }
 
@@ -444,7 +444,7 @@ int blkif_release(struct inode *inode, struct file *filep)
 
 
 int blkif_ioctl(struct inode *inode, struct file *filep,
-                unsigned command, unsigned long argument)
+               unsigned command, unsigned long argument)
 {
        int i;
 
index 91f152dacf70e31eb93bf1bfddd075679042789e..5ba3d1ebc36dcbd76d699cbcc174014e162b3e99 100644 (file)
 #include <asm/uaccess.h>
 
 #if 1
-#define IPRINTK(fmt, args...) \
-    printk(KERN_INFO "xen_blk: " fmt, ##args)
+#define IPRINTK(fmt, args...)                          \
+       printk(KERN_INFO "xen_blk: " fmt, ##args)
 #else
 #define IPRINTK(fmt, args...) ((void)0)
 #endif
 
 #if 1
-#define WPRINTK(fmt, args...) \
-    printk(KERN_WARNING "xen_blk: " fmt, ##args)
+#define WPRINTK(fmt, args...)                          \
+       printk(KERN_WARNING "xen_blk: " fmt, ##args)
 #else
 #define WPRINTK(fmt, args...) ((void)0)
 #endif
@@ -139,7 +139,7 @@ extern spinlock_t blkif_io_lock;
 extern int blkif_open(struct inode *inode, struct file *filep);
 extern int blkif_release(struct inode *inode, struct file *filep);
 extern int blkif_ioctl(struct inode *inode, struct file *filep,
-                       unsigned command, unsigned long argument);
+                      unsigned command, unsigned long argument);
 extern int blkif_getgeo(struct block_device *, struct hd_geometry *);
 extern int blkif_check(dev_t dev);
 extern int blkif_revalidate(dev_t dev);
index a295d33ba110bc14961ace40f19003e3d4e6b713..6576135c990f02b7c84d8c56074245586f9d9845 100644 (file)
 
 static inline int uncached_access(struct file *file)
 {
-        if (file->f_flags & O_SYNC)
-                return 1;
-        /* Xen sets correct MTRR type on non-RAM for us. */
-        return 0;
+       if (file->f_flags & O_SYNC)
+               return 1;
+       /* Xen sets correct MTRR type on non-RAM for us. */
+       return 0;
 }
 
 /*
index edc44b73cb20483bdf36fe0071fc3c1510a5d748..8553d76a7655adb0febb193da81801d21dc68951 100644 (file)
@@ -364,7 +364,7 @@ void xencons_tx(void)
 
 /* Privileged receive callback and transmit kicker. */
 static irqreturn_t xencons_priv_interrupt(int irq, void *dev_id,
-                                          struct pt_regs *regs)
+                                         struct pt_regs *regs)
 {
        static char rbuf[16];
        int         l;
index a85589eb9521fae2eb977533c569e65f34d72b04..f97d659f07bae712a6fc4d9e78dc546d392b709c 100644 (file)
@@ -220,9 +220,9 @@ unsigned long gnttab_end_foreign_transfer_ref(grant_ref_t ref)
        u16           flags;
 
        /*
-         * If a transfer is not even yet started, try to reclaim the grant
-         * reference and return failure (== 0).
-         */
+        * If a transfer is not even yet started, try to reclaim the grant
+        * reference and return failure (== 0).
+        */
        while (!((flags = shared[ref].flags) & GTF_transfer_committed)) {
                if (synch_cmpxchg(&shared[ref].flags, flags, 0) == flags)
                        return 0;
index 9ef9e1a6896a97d7e06fe87ab2ba82959ba393ee..a039a292eaa2f42e7fc4975e1a33a42f5e20eb32 100644 (file)
@@ -336,8 +336,8 @@ static struct xenbus_watch sysrq_watch = {
 };
 
 static int setup_shutdown_watcher(struct notifier_block *notifier,
-                                  unsigned long event,
-                                  void *data)
+                                 unsigned long event,
+                                 void *data)
 {
        int err;
 
index 9e8503f34b824202529ae55eb71a8a31726a8bb2..76bfab82e6a0e7c8a206a87e211fe46de09a210a 100644 (file)
@@ -93,7 +93,7 @@ void evtchn_device_upcall(int port)
 }
 
 static ssize_t evtchn_read(struct file *file, char __user *buf,
-                           size_t count, loff_t *ppos)
+                          size_t count, loff_t *ppos)
 {
        int rc;
        unsigned int c, p, bytes1 = 0, bytes2 = 0;
@@ -153,7 +153,7 @@ static ssize_t evtchn_read(struct file *file, char __user *buf,
 }
 
 static ssize_t evtchn_write(struct file *file, const char __user *buf,
-                            size_t count, loff_t *ppos)
+                           size_t count, loff_t *ppos)
 {
        int  rc, i;
        evtchn_port_t *kbuf = (evtchn_port_t *)__get_free_page(GFP_KERNEL);
@@ -201,7 +201,7 @@ static void evtchn_bind_to_user(struct per_user_data *u, int port)
 }
 
 static int evtchn_ioctl(struct inode *inode, struct file *file,
-                        unsigned int cmd, unsigned long arg)
+                       unsigned int cmd, unsigned long arg)
 {
        int rc;
        struct per_user_data *u = file->private_data;
index 5997a70875177eff6a3409b4fdb80e23de52890f..c52aaa5f6c4c2f75735f01ee4fcb13f232c45ba8 100644 (file)
 #include <xen/gnttab.h>
 #include <xen/driver_util.h>
 
-#define DPRINTK(_f, _a...) pr_debug("(file=%s, line=%d) " _f, \
-                                    __FILE__ , __LINE__ , ## _a )
-#define IPRINTK(fmt, args...) \
-    printk(KERN_INFO "xen_net: " fmt, ##args)
-#define WPRINTK(fmt, args...) \
-    printk(KERN_WARNING "xen_net: " fmt, ##args)
+#define DPRINTK(_f, _a...)                     \
+       pr_debug("(file=%s, line=%d) " _f,      \
+                __FILE__ , __LINE__ , ## _a )
+#define IPRINTK(fmt, args...)                          \
+       printk(KERN_INFO "xen_net: " fmt, ##args)
+#define WPRINTK(fmt, args...)                          \
+       printk(KERN_WARNING "xen_net: " fmt, ##args)
 
 typedef struct netif_st {
        /* Unique identifier for this interface. */
index 8e2289408ac4be30be64d7002d4ce3d63a0c180a..dbd8a7e804d3558292a533aacca54d76341c5b9e 100644 (file)
@@ -124,7 +124,7 @@ netif_t *netif_alloc(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN])
                 * Initialise a dummy MAC address. We choose the numerically
                 * largest non-broadcast address to prevent the address getting
                 * stolen by an Ethernet bridge for STP purposes.
-                 * (FE:FF:FF:FF:FF:FF) 
+                * (FE:FF:FF:FF:FF:FF)
                 */ 
                memset(dev->dev_addr, 0xFF, ETH_ALEN);
                dev->dev_addr[0] &= ~0x01;
index 828b771d2938f2de0fcd51bdca9205311217fbb2..0250cfa7d7d2e75b68c40c58f07eb4edff805590 100644 (file)
 static void netif_idx_release(u16 pending_idx);
 static void netif_page_release(struct page *page);
 static void make_tx_response(netif_t *netif, 
-                             u16      id,
-                             s8       st);
+                            u16      id,
+                            s8       st);
 static int  make_rx_response(netif_t *netif, 
-                             u16      id, 
-                             s8       st,
-                             u16      offset,
-                             u16      size,
-                             u16      flags);
+                            u16      id, 
+                            s8       st,
+                            u16      offset,
+                            u16      size,
+                            u16      flags);
 
 static void net_tx_action(unsigned long unused);
 static DECLARE_TASKLET(net_tx_tasklet, net_tx_action, 0);
@@ -329,9 +329,9 @@ static void net_rx_action(unsigned long unused)
                        DPRINTK("Bad status %d from grant transfer to DOM%u\n",
                                gop->status, netif->domid);
                        /*
-                         * Page no longer belongs to us unless GNTST_bad_page,
-                         * but that should be a fatal error anyway.
-                         */
+                        * Page no longer belongs to us unless GNTST_bad_page,
+                        * but that should be a fatal error anyway.
+                        */
                        BUG_ON(gop->status == GNTST_bad_page);
                        status = NETIF_RSP_ERROR; 
                }
@@ -483,7 +483,7 @@ inline static void net_tx_action_dealloc(void)
 
                make_tx_response(netif, pending_tx_info[pending_idx].req.id, 
                                 NETIF_RSP_OKAY);
-        
+
                pending_ring[MASK_PEND_IDX(pending_prod++)] = pending_idx;
 
                netif_put(netif);
@@ -898,8 +898,8 @@ irqreturn_t netif_be_int(int irq, void *dev_id, struct pt_regs *regs)
 }
 
 static void make_tx_response(netif_t *netif, 
-                             u16      id,
-                             s8       st)
+                            u16      id,
+                            s8       st)
 {
        RING_IDX i = netif->tx.rsp_prod_pvt;
        netif_tx_response_t *resp;
@@ -925,11 +925,11 @@ static void make_tx_response(netif_t *netif,
 }
 
 static int make_rx_response(netif_t *netif, 
-                            u16      id, 
-                            s8       st,
-                            u16      offset,
-                            u16      size,
-                            u16      flags)
+                           u16      id, 
+                           s8       st,
+                           u16      offset,
+                           u16      size,
+                           u16      flags)
 {
        RING_IDX i = netif->rx.rsp_prod_pvt;
        netif_rx_response_t *resp;
index b0fc28d04c211653e152b968ad1fb265abff8c39..d6e1d8e18544a385eb022b3d02b34698100d83ee 100644 (file)
@@ -138,14 +138,14 @@ static inline unsigned short get_id_from_freelist(struct sk_buff **list)
        return id;
 }
 
-#define DPRINTK(fmt, args...) pr_debug("netfront (%s:%d) " fmt, \
-                                       __FUNCTION__, __LINE__, ##args)
+#define DPRINTK(fmt, args...)                          \
+       pr_debug("netfront (%s:%d) " fmt,               \
+                __FUNCTION__, __LINE__, ##args)
 #define IPRINTK(fmt, args...)                          \
        printk(KERN_INFO "netfront: " fmt, ##args)
 #define WPRINTK(fmt, args...)                          \
        printk(KERN_WARNING "netfront: " fmt, ##args)
 
-
 static int talk_to_backend(struct xenbus_device *, struct netfront_info *);
 static int setup_device(struct xenbus_device *, struct netfront_info *);
 static struct net_device *create_netdev(int, struct xenbus_device *);
@@ -846,10 +846,10 @@ static int netif_poll(struct net_device *dev, int *pbudget)
                rx = RING_GET_RESPONSE(&np->rx, i);
 
                /*
-                 * This definitely indicates a bug, either in this driver or
-                 * in the backend driver. In future this should flag the bad
-                 * situation to the system controller to reboot the backed.
-                 */
+                * This definitely indicates a bug, either in this driver or in
+                * the backend driver. In future this should flag the bad
+                * situation to the system controller to reboot the backed.
+                */
                if ((ref = np->grant_rx_ref[rx->id]) == GRANT_INVALID_REF) {
                        WPRINTK("Bad rx response id %d.\n", rx->id);
                        work_done--;
index 824ae648a5bf97eca945a2ce9e101683016bdc5e..d367c6930025d070558cddd5cf054850ca18521c 100644 (file)
@@ -39,7 +39,7 @@ static struct proc_dir_entry *capabilities_intf;
 static DECLARE_BITMAP(hypercall_permission_map, NR_HYPERCALLS);
 
 static int privcmd_ioctl(struct inode *inode, struct file *file,
-                         unsigned int cmd, unsigned long data)
+                        unsigned int cmd, unsigned long data)
 {
        int ret = -ENOSYS;
        void __user *udata = (void __user *) data;
@@ -241,7 +241,7 @@ static struct file_operations privcmd_file_ops = {
 };
 
 static int capabilities_read(char *page, char **start, off_t off,
-                        int count, int *eof, void *data)
+                            int count, int *eof, void *data)
 {
        int len = 0;
        *page = 0;
index 34ad72d9f2d81e17e1a39465a136c1528a251842..c0e80fffcc543c955f233d39e52837280da254aa 100644 (file)
@@ -17,8 +17,9 @@
 #include <asm/io.h>
 #include <asm/pgalloc.h>
 
-#define DPRINTK(_f, _a...) pr_debug("(file=%s, line=%d) " _f, \
-                                    __FILE__ , __LINE__ , ## _a )
+#define DPRINTK(_f, _a...)                     \
+       pr_debug("(file=%s, line=%d) " _f,      \
+                __FILE__ , __LINE__ , ## _a )
 
 typedef struct tpmif_st {
        struct list_head tpmif_list;
@@ -68,12 +69,11 @@ int tpmif_vtpm_close(u32 instance);
 int vtpm_release_packets(tpmif_t * tpmif, int send_msgs);
 
 #define tpmif_get(_b) (atomic_inc(&(_b)->refcnt))
-#define tpmif_put(_b)                             \
-    do {                                          \
-        if ( atomic_dec_and_test(&(_b)->refcnt) ) \
-            tpmif_disconnect_complete(_b);        \
-    } while (0)
-
+#define tpmif_put(_b)                                  \
+       do {                                            \
+               if (atomic_dec_and_test(&(_b)->refcnt)) \
+                       tpmif_disconnect_complete(_b);  \
+       } while (0)
 
 extern int num_frontends;
 
index ac015d51097a49bb1ce1957bd1a96fc8e5b92da4..ee72c83a0dd720df8098c2370a6a59a7cffca32a 100644 (file)
@@ -41,9 +41,9 @@ static void maybe_connect(struct backend_info *be);
 static void connect(struct backend_info *be);
 static int connect_ring(struct backend_info *be);
 static void backend_changed(struct xenbus_watch *watch,
-                            const char **vec, unsigned int len);
+                           const char **vec, unsigned int len);
 static void frontend_changed(struct xenbus_device *dev,
-                             enum xenbus_state frontend_state);
+                            enum xenbus_state frontend_state);
 
 static int tpmback_remove(struct xenbus_device *dev)
 {
@@ -67,15 +67,15 @@ static int tpmback_remove(struct xenbus_device *dev)
 }
 
 static int tpmback_probe(struct xenbus_device *dev,
-                         const struct xenbus_device_id *id)
+                        const struct xenbus_device_id *id)
 {
        int err;
        struct backend_info *be = kzalloc(sizeof(struct backend_info),
-                                         GFP_KERNEL);
+                                         GFP_KERNEL);
 
        if (!be) {
                xenbus_dev_fatal(dev, -ENOMEM,
-                                "allocating backend structure");
+                                "allocating backend structure");
                return -ENOMEM;
        }
 
@@ -84,8 +84,8 @@ static int tpmback_probe(struct xenbus_device *dev,
        dev->dev.driver_data = be;
 
        err = xenbus_watch_path2(dev, dev->nodename,
-                               "instance", &be->backend_watch,
-                               backend_changed);
+                                "instance", &be->backend_watch,
+                                backend_changed);
        if (err) {
                goto fail;
        }
@@ -102,7 +102,7 @@ fail:
 
 
 static void backend_changed(struct xenbus_watch *watch,
-                            const char **vec, unsigned int len)
+                           const char **vec, unsigned int len)
 {
        int err;
        long instance;
@@ -111,7 +111,7 @@ static void backend_changed(struct xenbus_watch *watch,
        struct xenbus_device *dev = be->dev;
 
        err = xenbus_scanf(XBT_NIL, dev->nodename,
-                          "instance","%li", &instance);
+                          "instance","%li", &instance);
        if (XENBUS_EXIST_ERR(err)) {
                return;
        }
@@ -129,7 +129,7 @@ static void backend_changed(struct xenbus_watch *watch,
 
 
 static void frontend_changed(struct xenbus_device *dev,
-                             enum xenbus_state frontend_state)
+                            enum xenbus_state frontend_state)
 {
        struct backend_info *be = dev->dev.driver_data;
        int err;
@@ -167,8 +167,8 @@ static void frontend_changed(struct xenbus_device *dev,
        case XenbusStateInitWait:
        default:
                xenbus_dev_fatal(dev, -EINVAL,
-                                "saw state %d at frontend",
-                                frontend_state);
+                                "saw state %d at frontend",
+                                frontend_state);
                break;
        }
 }
@@ -188,11 +188,11 @@ static void maybe_connect(struct backend_info *be)
         * Notify the vTPM manager about a new front-end.
         */
        err = tpmif_vtpm_open(be->tpmif,
-                             be->frontend_id,
-                             be->instance);
+                             be->frontend_id,
+                             be->instance);
        if (err) {
                xenbus_dev_error(be->dev, err,
-                                "queueing vtpm open packet");
+                                "queueing vtpm open packet");
                /*
                 * Should close down this device and notify FE
                 * about closure.
@@ -217,7 +217,7 @@ again:
        }
 
        err = xenbus_printf(xbt, be->dev->nodename,
-                           "ready", "%lu", ready);
+                           "ready", "%lu", ready);
        if (err) {
                xenbus_dev_fatal(be->dev, err, "writing 'ready'");
                goto abort;
@@ -246,7 +246,7 @@ static int connect_ring(struct backend_info *be)
        int err;
 
        err = xenbus_gather(XBT_NIL, dev->otherend,
-                           "ring-ref", "%lu", &ring_ref,
+                           "ring-ref", "%lu", &ring_ref,
                            "event-channel", "%u", &evtchn, NULL);
        if (err) {
                xenbus_dev_error(dev, err,
@@ -257,7 +257,7 @@ static int connect_ring(struct backend_info *be)
 
        if (!be->tpmif) {
                be->tpmif = tpmif_find(dev->otherend_id,
-                                      be->instance);
+                                      be->instance);
                if (IS_ERR(be->tpmif)) {
                        err = PTR_ERR(be->tpmif);
                        be->tpmif = NULL;
@@ -270,8 +270,8 @@ static int connect_ring(struct backend_info *be)
                err = tpmif_map(be->tpmif, ring_ref, evtchn);
                if (err) {
                        xenbus_dev_error(dev, err,
-                                        "mapping shared-frame %lu port %u",
-                                        ring_ref, evtchn);
+                                        "mapping shared-frame %lu port %u",
+                                        ring_ref, evtchn);
                        return err;
                }
        }
index 3bef9b3084ff37778b8ca556eb0761b21187c6a3..137529b79b2aaa7d5fa69791901f7a9fc702d754 100644 (file)
@@ -30,8 +30,9 @@
  * IN THE SOFTWARE.
  */
 
-#define DPRINTK(fmt, args...) \
-    pr_debug("xenbus_probe (%s:%d) " fmt ".\n", __FUNCTION__, __LINE__, ##args)
+#define DPRINTK(fmt, args...)                          \
+       pr_debug("xenbus_probe (%s:%d) " fmt ".\n",     \
+                __FUNCTION__, __LINE__, ##args)
 
 #include <linux/kernel.h>
 #include <linux/err.h>
@@ -817,18 +818,18 @@ static int resume_dev(struct device *dev, void *data)
                       dev->bus_id, err);
                return err;
        }
-        
+
        xdev->state = XenbusStateInitialising;
-        
+
        if (drv->resume) {
                err = drv->resume(xdev);
-                if (err) { 
-                        printk(KERN_WARNING
-                               "xenbus: resume %s failed: %i\n", 
-                               dev->bus_id, err);
-                        return err; 
-                }
-        }
+               if (err) { 
+                       printk(KERN_WARNING
+                              "xenbus: resume %s failed: %i\n", 
+                              dev->bus_id, err);
+                       return err; 
+               }
+       }
 
        err = watch_otherend(xdev);
        if (err) {
@@ -945,7 +946,7 @@ static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma)
 }
 
 static int xsd_kva_read(char *page, char **start, off_t off,
-                        int count, int *eof, void *data)
+                       int count, int *eof, void *data)
 {
        int len;
 
@@ -1044,10 +1045,10 @@ static int __init xenbus_probe_init(void)
                free_page(page);
 
        /*
-         * Do not unregister the xenbus front/backend buses here. The
-         * buses must exist because front/backend drivers will use
-         * them when they are registered.
-         */
+        * Do not unregister the xenbus front/backend buses here. The buses
+        * must exist because front/backend drivers will use them when they are
+        * registered.
+        */
 
        return err;
 }