Display more debug info on error.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -44,7 +44,7 @@ extern const bool _btrue, _bfalse;
|
|||||||
error = f; \
|
error = f; \
|
||||||
if (error != CborNoError) \
|
if (error != CborNoError) \
|
||||||
{ \
|
{ \
|
||||||
printf("Cannot encode CBOR [%s:%d]: %s\n", __FILE__, __LINE__, #f); \
|
printf("Cannot encode CBOR [%s:%d]: %s (%d)\n", __FILE__, __LINE__, #f, error); \
|
||||||
goto err; \
|
goto err; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|||||||
Reference in New Issue
Block a user