From: Wolfgang Denk Date: Thu, 28 Jul 2011 20:45:40 +0200 Subject: [U-Boot] [PATCH] mpc8xxx: lc_common_dimm_params: make less verbose In-Reply-To: <1311875176.29459.14.camel@oslab-l1> References: <1311581699-6301-1-git-send-email-wd@denx.de> <1311875176.29459.14.camel@oslab-l1> Message-ID: <20110728184540.B0D6C1EA343@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear York Sun, In message <1311875176.29459.14.camel@oslab-l1> you wrote: > > > - printf("Detected RDIMM %s\n", > > + debug("Detected RDIMM %s\n", > > dimm_params[i].mpart); > > } else { > > temp2 = 1; > > - printf("Detected UDIMM %s\n", > > + debug("Detected UDIMM %s\n", > > dimm_params[i].mpart); > > } > > } > > NAK. NAK the NAK. > We need to log module part number for testing and verification, debug() is exactly what is intended to be used for testing. I don't know what exactly you mean by "verification", but I guess that covers it, too. Keeping this as prontf() corrupts the format of the boot messages, and adds to the boot time without real value. > especially when comparing with different parts. It is also helpful for > support, without asking customers to recompile to enable debugging. Then feel free to add a custom command to display this specific information, but keep it off the regular, unconditionally printed boot messages. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A Vulcan can no sooner be disloyal than he can exist without breathing. -- Kirk, "The Menagerie", stardate 3012.4