]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When generating functions to print the arguments of system calls with
authorrpaulo <rpaulo@FreeBSD.org>
Thu, 16 Sep 2010 11:33:31 +0000 (11:33 +0000)
committerrpaulo <rpaulo@FreeBSD.org>
Thu, 16 Sep 2010 11:33:31 +0000 (11:33 +0000)
commita5675467db63223c48c077b5d11728af70c0d848
treed4baf4f1b9697b9b58ab99ce8dd05b21025a53f7
parent10f125026cd544d1d2829b8f0d72332c62d90e2b
When generating functions to print the arguments of system calls with
bitwise parameters (e.g. mmap), print the syscall parameter value first.
The resulting output looks like the %b specifier of printf(9).

Before:
mmap(0,0x8000,PROT_READ|PROT_WRITE,...
After:
mmap(0,0x8000,0x3<PROT_READ|PROT_WRITE>,...

Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
Idea from: freebsd-arch/2006-April/005116.html
usr.bin/kdump/mksubr