aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragx <agx>2006-08-04 18:19:14 +0000
committeragx <agx>2006-08-04 18:19:14 +0000
commitfded4148c7aabd6dcbaab9b9fd77824fc9fef9c9 (patch)
tree4725723b3b9d5190e6ae694077afbad5c350640e
parent6250f78db33272f30498a492c3750ee35a5bb109 (diff)
print line number in asserts
-rw-r--r--at76c503.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76c503.c b/at76c503.c
index ace38a3..92dac0f 100644
--- a/at76c503.c
+++ b/at76c503.c
@@ -118,7 +118,7 @@ int at76_debug = DBG_DEFAULTS;
#define assert(x) \
do {\
if (!(x)) \
- err("assertion " #x " failed");\
+ err("%d: assertion " #x " failed", __LINE__);\
} while (0)
/* how often do we re-try these packets ? */