From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sun, 6 Sep 2015 21:20:21 +0800 Subject: [U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command In-Reply-To: <201509051451.37346.marex@denx.de> References: <1441336526-23505-1-git-send-email-thomas@wytron.com.tw> <201509041601.52810.marex@denx.de> <55EA597C.3050809@wytron.com.tw> <201509051451.37346.marex@denx.de> Message-ID: <55EC3D95.7030206@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, >>> I think this will not work on 64bit machines. I tried 64bits with print_lnum("fdt_blob", (u64)gd->fdt_blob); But got this warning, CC common/cmd_bdinfo.o common/cmd_bdinfo.c: In function 'do_bdinfo': common/cmd_bdinfo.c:180:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] print_lnum("fdt_blob", (u64)gd->fdt_blob); ^ include/asm-generic/global_data.h const void *fdt_blob; /* Our device tree, NULL if none */ Actually, the print is guarded with CONFIG_NIOS2, so it is safe to use 32bits. Or shall we invent a "print pointer address"? Best regards, Thomas Chou