From 58a0db4280440b1d419bdcdad4ef85b656387fee Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 5 Dec 2012 10:19:41 +0100 Subject: [PATCH] light: improve debugging of replaylink --- sy_old/mars_light.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sy_old/mars_light.c b/sy_old/mars_light.c index 1bc5cf66..f10f5ea6 100644 --- a/sy_old/mars_light.c +++ b/sy_old/mars_light.c @@ -1380,6 +1380,11 @@ int _update_replaylink(struct mars_global *global, const char *parent_path, cons goto out; } +#ifdef CONFIG_MARS_DEBUG + if (unlikely(start_pos > end_pos)) { + MARS_ERR("old='%s' new='%s' start_pos = %lld end_pos = %lld\n", old, new, start_pos, end_pos); + } +#endif /* Check whether something really has changed (avoid * useless/disturbing timestamp updates) */