From: Wolfgang Denk Date: Tue, 13 May 2008 10:34:33 +0200 Subject: [U-Boot-Users] [PATCH] add memory-pattern-test for lwmon5 fpga-post. In-Reply-To: Your message of "Tue, 13 May 2008 09:53:08 +0200." <12106651882830-git-send-email-sascha.laue@liebherr.com> Message-ID: <20080513083433.53CA4247A5@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 In message <12106651882830-git-send-email-sascha.laue@liebherr.com> you wrote: ... > + while( pattern[i] != 0) > + { Incorrect brace style. Also incorrect white space. U-Boot requires: while (pattern[i] != 0) { > + if( read_value != pattern[i]){ Please add a space before the '(' and '{', and remove the apce after the '('. > + post_log("FPGA Memory test failed write %08X, read %08X at address %08X\n", Line too long. > @@ -87,7 +129,16 @@ int fpga_post_test(int flags) > > read_value = get_ram_size((void *)CFG_FPGA_BASE_1, 0x4000); > post_log("FPGA RAM size: %d bytes\n", read_value); > - > + Please do not add trailing white space. > + for(address = 0; address < 0x1000; address++) > + { Brace style, white space. > + if( fpga_mem_test((void *) (FPGA_RAM_START + 4*address)) == 1){ White space. > + ret = 1; > + goto out; > + } > + }; No semicolon here, please. 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 To be a winner, all you need to give is all you have.