summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/posix_types.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-05-04 10:20:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-05 23:43:58 +0300
commit6808b7f5c8255d07d79cb8eac40047f59e4154ad (patch)
tree8ea4ba0bc4f2fc1a23090f19589bb0069c357e80 /include/uapi/asm-generic/posix_types.h
parent240754894c30e3b13ca91113f177dd7f315eb297 (diff)
downloadlinux-6808b7f5c8255d07d79cb8eac40047f59e4154ad.tar.xz
termbits: Convert octal defines to hex
Many archs have termbits.h as octal numbers. It makes hard for humans to parse the magnitude of large numbers correctly and to compare with hex ones of the same define. Convert octal values to hex. First step is an automated conversion with: for i in $(git ls-files | grep 'termbits\.h'); do awk --non-decimal-data '/^#define\s+[A-Z][A-Z0-9]*\s+0[0-9]/ { l=int(((length($3) - 1) * 3 + 3) / 4); repl = sprintf("0x%0" l "x", $3); print gensub(/[^[:blank:]]+/, repl, 3); next} {print}' $i > $i~; mv $i~ $i; done On top of that, some manual processing on alignment and number of zeros. In addition, small tweaks to formatting of a few comments on the same lines. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Link: https://lore.kernel.org/r/2c8c96f-a12f-aadc-18ac-34c1d371929c@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/asm-generic/posix_types.h')
0 files changed, 0 insertions, 0 deletions