[PATCH 2/3] Modify %M directive to support variable width.

Masami Hiramatsu mhiramat@redhat.com
Fri Apr 24 15:27:00 GMT 2009


Wenji Huang wrote:
> diff --git a/testsuite/systemtap.printf/memory1.stp b/testsuite/systemtap.printf/memory1.stp
> index f9cbf60..93a4edf 100644
> --- a/testsuite/systemtap.printf/memory1.stp
> +++ b/testsuite/systemtap.printf/memory1.stp
> @@ -113,6 +113,20 @@ probe syscall.open {
>  		success = 0;
>  	}
>  
> +	expected_16_actual = sprintf ("  %x%x%x%x%x%x",
> +				      chrofstr(filename, 0),
> +				      chrofstr(filename, 1),
> +				      chrofstr(filename, 2),
> +				      chrofstr(filename, 3),
> +				      chrofstr(filename, 4),
> +				      chrofstr(filename, 5));

Hmm, these should be %02x?

Thanks,

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com



More information about the Systemtap mailing list