public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Robert Schwebel <robert@schwebel.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] 5/5: progress
Date: Mon, 31 Mar 2003 11:35:02 +0200	[thread overview]
Message-ID: <20030331093502.GP7702@pengutronix.de> (raw)

progress:

- fix BOOT_PROGRESS in armlinux.c
- cosmetic changes (must be allowed as I've touched the file anyway :^)

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
-------------- next part --------------
--- u-boot/lib_arm/armlinux.c	2002-11-05 01:18:03.000000000 +0100
+++ u-boot-ptx/lib_arm/armlinux.c	2003-03-31 11:21:38.000000000 +0200
@@ -32,6 +32,13 @@
 #define tag_size(type)  ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)
 #define tag_next(t)     ((struct tag *)((u32 *)(t) + (t)->hdr.size))
 
+
+#ifdef CONFIG_SHOW_BOOT_PROGRESS
+# define SHOW_BOOT_PROGRESS(arg)        show_boot_progress(arg)
+#else
+# define SHOW_BOOT_PROGRESS(arg)
+#endif
+
 #if defined (CONFIG_SETUP_MEMORY_TAGS) || \
     defined (CONFIG_CMDLINE_TAG) || \
     defined (CONFIG_INITRD_TAG) || \
@@ -88,7 +95,6 @@
      */
     if (argc >= 3) {
 	SHOW_BOOT_PROGRESS (9);
-
 	addr = simple_strtoul(argv[2], NULL, 16);
 
 	printf ("## Loading Ramdisk Image at %08lx ...\n", addr);
@@ -98,7 +104,7 @@
 
 	if (ntohl(hdr->ih_magic) != IH_MAGIC) {
 	    printf ("Bad Magic Number\n");
-	    SHOW_BOOT_PROGRESS (-10);
+            SHOW_BOOT_PROGRESS (-10);
 	    do_reset (cmdtp, flag, argc, argv);
 	}
 
@@ -175,11 +181,7 @@
 	data = 0;
     }
 
-#ifdef	DEBUG
-    if (!data) {
-	printf ("No initrd\n");
-    }
-#endif
+    if (!data) debug("No initrd\n");
 
     if (data) {
 	initrd_start = data;
@@ -191,10 +193,8 @@
 
     SHOW_BOOT_PROGRESS (15);
 
-#ifdef DEBUG
-    printf ("## Transferring control to Linux (at address %08lx) ...\n",
+    debug("## Transferring control to Linux (at address %08lx) ...\n",
 	    (ulong)theKernel);
-#endif
 
 #if defined (CONFIG_SETUP_MEMORY_TAGS) || \
     defined (CONFIG_CMDLINE_TAG) || \
@@ -235,7 +235,7 @@
 static void setup_start_tag(bd_t *bd)
 {
     params = (struct tag *)bd->bi_boot_params;
-
+    
     params->hdr.tag = ATAG_CORE;
     params->hdr.size = tag_size(tag_core);
 

             reply	other threads:[~2003-03-31  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31  9:35 Robert Schwebel [this message]
2003-03-31 10:17 ` [U-Boot-Users] [PATCH] 5/5: progress Wolfgang Denk
2003-03-31 10:37   ` Robert Schwebel
2003-03-31 17:43 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030331093502.GP7702@pengutronix.de \
    --to=robert@schwebel.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox