Use decimal notation in a debug message
[madwifi/.git] / scripts / madwifi-indent
1 #!/bin/sh
2
3 # Based on Lindent script from Linux with extra types.
4 # GNU indent doesn't seen to be able to identify types from their
5 # position in the code.
6
7 indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs \
8  -T s8 -T s16 -T s32 -T s64 \
9  -T __s8 -T __s16 -T __s32 -T __s64 \
10  -T u8 -T u16 -T u32 -T u64 \
11  -T __u8 -T __u16 -T __u32 -T __u64 \
12  -T __be16 -T __be32 -T __be64 \
13  -T __le16 -T __le32 -T __le64 \
14  -T size_t -T u_int8_t -T u_int16_t -T u_int32_t -T u_int64_t \
15  -T HAL_BEACON_STATE -T HAL_BEACON_TIMERS -T HAL_BOOL -T HAL_CHANNEL \
16  -T HAL_TXQ_INFO -T HAL_INT -T HAL_KEYVAL -T HAL_MIB_STATS \
17  -T HAL_NODE_STATS -T HAL_RATE_TABLE -T HAL_STATUS \
18  "$@"
19
20 for i in "$@"; do
21         sed -i -e 's/^ *\([^ :]\+:\)$/\1/;s/\(__attribute__\) ((/\1((/g' $i
22 done