[PATCH] Blackfin: decode L2_SRAM flag with for l1_sram_alloc()

Denys Vlasenko dvlasenk at redhat.com
Mon Mar 23 13:14:43 UTC 2009


On Wed, 2009-03-18 at 00:24 -0400, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  system.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/system.c b/system.c
> index fc7f869..01dee48 100644
> --- a/system.c
> +++ b/system.c
> @@ -302,6 +302,7 @@ static const struct xlat sram_alloc_flags[] = {
>  	{ L1_DATA_A_SRAM,	"L1_DATA_A_SRAM" },
>  	{ L1_DATA_B_SRAM,	"L1_DATA_B_SRAM" },
>  	{ L1_DATA_SRAM,		"L1_DATA_SRAM" },
> +	{ L2_SRAM,		"L2_SRAM" },
>  	{ 0,			NULL },
>  };
>  
> @@ -313,7 +314,7 @@ struct tcb *tcp;
>  		/* size */
>  		tprintf("%zu, ", tcp->u_arg[0]);
>  		/* flags */
> -		printxval(sram_alloc_flags, tcp->u_arg[1], "L1_???_SRAM");
> +		printxval(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
>  	}
>  	return 1;
>  }

Applied, thanks!

I also noticed that %zu usage above is wrong, and fixed it,
then grepped through the tree and found only one other %zu...
which turned out to be wrong as well. :)
--
vda





More information about the Strace-devel mailing list