efi: Turn off debugging support by default
authorChandramouli Narayanan <chandramouli.narayanan@intel.com>
Wed, 14 Mar 2012 10:26:46 +0000 (10:26 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 28 Mar 2012 13:38:42 +0000 (14:38 +0100)
There's no need to print debug messages unless the user actually needs
to debug something. Also, delete the useless "foo!" message and
convert an unconditional Print into a debug message.

Signed-off-by: Chandramouli Narayanan <chandramouli.narayanan@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
efi/diskio.c

index 5e7898a..e30f8da 100644 (file)
@@ -1,4 +1,3 @@
-#define DEBUG 1
 #include <fs.h>
 #include <ilog2.h>
 #include <disk.h>
@@ -69,9 +68,8 @@ struct disk *efi_disk_init(struct disk_private *priv)
     disk.rdwr_sectors  = efi_rdwr_sectors;
     disk.sector_shift  = ilog2(disk.sector_size);
 
-    dprintf("foo!\n");
-    Print(L"sector_size=%d, disk_number=%d\n", disk.sector_size,
-         disk.disk_number);
+    dprintf("sector_size=%d, disk_number=%d\n", disk.sector_size,
+           disk.disk_number);
 
     priv->bio = bio;
     priv->dio = dio;