/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #ifndef DIE_H #define DIE_H #include #include #include #include #include #include #include #include "built_in.h" static inline void panic(const char *format, ...) __check_format_printf(1, 2); static inline void syslog_panic(const char *format, ...) __check_format_printf(1, 2); static inline void syslog_maybe(int may, int priority, const char *format, ...) __check_format_printf(3, 4); static inline void __noreturn die(void) { exit(EXIT_FAILURE); } static inline void __noreturn _die(void) { _exit(EXIT_FAILURE); } static inline void __noreturn panic(const char *format, ...) { va_list vl; va_start(vl, format); vfprintf(stderr, format, vl); va_end(vl); die(); } static inline void __noreturn syslog_panic(const char *format, ...) { va_list vl; va_start(vl, format); vsyslog(LOG_ERR, format, vl); va_end(vl); die(); } static inline void syslog_maybe(int maybe, int priority, const char *format, ...) { if (!!maybe) { va_list vl; va_start(vl, format); vsyslog(priority, format, vl); va_end(vl); } } #endif /* DIE_H */ packet-loop-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2016-06-08 16:14:19 +0530
committerRob Clark <robdclark@gmail.com>2016-07-16 10:08:47 -0400
commit60282cea5bfa934694decfe836ee4600504bdeb1 (patch)
tree307395f8c83a0e99cec6e70c3f1df13100190788
parent69696ea041fa7bffb04d2141f6ec997c24cf09da (diff)
drm/msm/dsi: Use a standard DT binding for data lanes
A more standard DT binding describing data lanes already exists here: Documentation/devicetree/bindings/media/video-interfaces.txt Use this binding instead of "qcom,data-lane-map". One difference in the standard binding w.r.t to the existing binding is that it provides a logical to physical mapping instead of the other way round. Tweak the code to translate the data the way we want it. The MSM DSI DT bindings aren't used anywhere at the moment, so it's okay to update this property. Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>