[U-Boot-Users] [PATCH] add memory-pattern-test for lwmon5 fpga-post.

Wolfgang Denk wd at denx.de
Tue May 13 10:34:33 CEST 2008


In message <12106651882830-git-send-email-sascha.laue at 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.




More information about the U-Boot mailing list