summaryrefslogtreecommitdiff
path: root/ptp.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:33:50 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:33:50 +0000
commitbce0cc6a2d103e1da4c15a4c5396fdc5676294f7 (patch)
tree25a89204211c047c75d21e19f47a4fa627e99499 /ptp.c
parenta69ddcb672f326418aaa74f399f600f69d074758 (diff)
downloadstrace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.gz
strace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.bz2
strace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.xz
Use XLAT macro
Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
Diffstat (limited to 'ptp.c')
-rw-r--r--ptp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ptp.c b/ptp.c
index 119b167..35cf685 100644
--- a/ptp.c
+++ b/ptp.c
@@ -3,9 +3,9 @@
#include <linux/ptp_clock.h>
static const struct xlat ptp_flags_options[] = {
- { PTP_ENABLE_FEATURE, "PTP_ENABLE_FEATURE" },
- { PTP_RISING_EDGE, "PTP_RISING_EDGE" },
- { PTP_FALLING_EDGE, "PTP_FALLING_EDGE" },
+ XLAT(PTP_ENABLE_FEATURE),
+ XLAT(PTP_RISING_EDGE),
+ XLAT(PTP_FALLING_EDGE),
{ 0, NULL }
};