linux: Quieten blkfront output.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-04-11 14:34:08 +01:00
1 parent b8680a8065
commit 0fd1484f34
2 files changed
+1 -17

No files matched your search

@@ -56,20 +56,6 @@
#include <asm/atomic.h>
#include <asm/uaccess.h>
#if 1
#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)
#else
#define WPRINTK(fmt, args...) ((void)0)
#endif
#define DPRINTK(_f, _a...) pr_debug(_f, ## _a)
#if 0
@@ -128,14 +128,12 @@ xlbd_alloc_major_info(int major, int minor, int index)
break;
}
printk("Registering block device major %i\n", ptr->major);
if (register_blkdev(ptr->major, ptr->type->devname)) {
WPRINTK("can't get major %d with name %s\n",
ptr->major, ptr->type->devname);
kfree(ptr);
return NULL;
}
printk("xen-vbd: registered block device major %i\n", ptr->major);
major_info[index] = ptr;
return ptr;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.