aboutsummaryrefslogtreecommitdiff
path: root/disk/part.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-03-14 22:25:36 +0000
committerwdenk <wdenk>2004-03-14 22:25:36 +0000
commit42dfe7a1844cbad7114038aaf03828acb7a84414 (patch)
treed33893d34d2a97aa23257703733dbc9d86d48278 /disk/part.c
parent855a496fe9ba431772f1ff1aef21a5c001288bb0 (diff)
downloadu-boot-linaro-natty-42dfe7a1844cbad7114038aaf03828acb7a84414.tar.gz
Code cleanup; make several boards compile & link.LABEL_2004_03_14_2340
Diffstat (limited to 'disk/part.c')
-rw-r--r--disk/part.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/disk/part.c b/disk/part.c
index 783b391c5..90d6644ae 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -44,7 +44,7 @@
*/
void dev_print (block_dev_desc_t *dev_desc)
{
-#if CONFIG_LBA48
+#ifdef CONFIG_LBA48
uint64_t lba512; /* number of blocks if 512bytes block size */
#else
lbaint_t lba512;
@@ -87,7 +87,7 @@ void dev_print (block_dev_desc_t *dev_desc)
if ((dev_desc->lba * dev_desc->blksz)>0L) {
ulong mb, mb_quot, mb_rem, gb, gb_quot, gb_rem;
lbaint_t lba;
-#if CONFIG_LBA48
+#ifdef CONFIG_LBA48
if (dev_desc->lba48support)
lba = dev_desc->lba48;
else
@@ -103,11 +103,11 @@ void dev_print (block_dev_desc_t *dev_desc)
gb = mb / 1024;
gb_quot = gb / 10;
gb_rem = gb - (10 * gb_quot);
-#if CONFIG_LBA48
+#ifdef CONFIG_LBA48
if (dev_desc->lba48support)
printf (" Supports 48-bit addressing\n");
#endif
-#if CFG_64BIT_LBA && CFG_64BIT_VSPRINTF
+#if defined(CFG_64BIT_LBA) && defined(CFG_64BIT_VSPRINTF)
printf (" Capacity: %ld.%ld MB = %ld.%ld GB (%qd x %ld)\n",
mb_quot, mb_rem,
gb_quot, gb_rem,