New utility: nscd cache dumper

Andreas Schwab schwab@suse.de
Tue Mar 17 10:02:10 GMT 2020


On Mär 12 2020, DJ Delorie wrote:

> +#define NO_REF ((ref_t)-1)

Style: space after cast.

> +#define A(x) (int)((char *)&(x)-(char *)the_cache)

Style: space after cast.

> +  /* Common code for "print field DPS->F, it's offset, and contents".  */
> +#define DPS(f) printf("%08x: %24s : %10d %08x\n", A (dps->f), #f, (int)dps->f, (int)dps->f);

Style: space after cast.

> +	  if (debug_level > 0)
> +	    {
> +/* Common code for printing fields in struct DATAHEAD DH.  */
> +#define DH(f) printf ("%08x; %24s : %10d %08x\n", A (dh->f), #f, (int)dh->f, (int)dh->f);

Style: space after cast.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list