Do explicit logging in src/message.c

This commit is contained in:
Jan Vidar Krey 2009-03-23 08:18:25 +01:00
parent e9915df87c
commit 90abf64e3a
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@
uhub_assert(X->capacity); \ uhub_assert(X->capacity); \
uhub_assert(X->length); \ uhub_assert(X->length); \
uhub_assert(X->length <= X->capacity); \ uhub_assert(X->length <= X->capacity); \
if (X->length != strlen(X->cache)) \
hub_log(log_error, "Assert: X->length (%d) != strlen(X->cache) (%d)", X->length, strlen(X->cache)); \
uhub_assert(X->length == strlen(X->cache)); \ uhub_assert(X->length == strlen(X->cache)); \
uhub_assert(X->references >= 0); uhub_assert(X->references >= 0);
#else #else