light: improve debugging of replaylink

This commit is contained in:
Thomas Schoebel-Theuer 2012-12-05 10:19:41 +01:00 committed by Thomas Schoebel-Theuer
parent 3aa9ed6926
commit 58a0db4280
1 changed files with 5 additions and 0 deletions

View File

@ -1380,6 +1380,11 @@ int _update_replaylink(struct mars_global *global, const char *parent_path, cons
goto out; 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 /* Check whether something really has changed (avoid
* useless/disturbing timestamp updates) * useless/disturbing timestamp updates)
*/ */