fdt: Remove duplicate code
[oweals/u-boot.git] / lib / display_options.c
index 32849821f4e8f10090f97c1f33d8a33266bbac2d..af1802ef992ff7ad8b7083b7bd6cb117d4fd0e1a 100644 (file)
@@ -174,7 +174,9 @@ int print_buffer(ulong addr, const void *data, uint width, uint count,
                                x = lb.us[i] = *(volatile uint16_t *)data;
                        else
                                x = lb.uc[i] = *(volatile uint8_t *)data;
-#ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
+#if defined(CONFIG_SPL_BUILD)
+                       printf(" %x", (uint)x);
+#elif defined(CONFIG_SYS_SUPPORT_64BIT_DATA)
                        printf(" %0*llx", width * 2, (long long)x);
 #else
                        printf(" %0*x", width * 2, x);