X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fram_hd.c;h=1094a3191691bd54086c16837df89fd1b782b45b;hb=d0886c953a9e5969ee0f54f11bb146bfe888bfe3;hp=3129ec537082d9df439a74538cc6954fd822dd48;hpb=6661dd1d2aa547ae248e816dcd4201bcbcb7fee0;p=palacios.git diff --git a/palacios/src/devices/ram_hd.c b/palacios/src/devices/ram_hd.c index 3129ec5..1094a31 100644 --- a/palacios/src/devices/ram_hd.c +++ b/palacios/src/devices/ram_hd.c @@ -22,6 +22,12 @@ #include + +#ifndef DEBUG_IDE +#undef PrintDebug +#define PrintDebug(fmt, args...) +#endif + struct hd_state { addr_t disk_image; uint32_t capacity; // in bytes @@ -40,7 +46,7 @@ static int hd_read(uint8_t * buf, int sector_count, uint64_t lba, void * privat int offset = lba * IDE_SECTOR_SIZE; int length = sector_count * IDE_SECTOR_SIZE; - PrintDebug("Reading RAM HD at (LBA=%d) offset %d (length=%d)\n", (uint32_t)lba, offset, length); + // PrintDebug("Reading RAM HD at (LBA=%d) offset %d (length=%d)\n", (uint32_t)lba, offset, length); memcpy(buf, (uint8_t *)(hd->disk_image + offset), length);