Adding file debug.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -29,6 +29,7 @@ extern int cbor_process(const uint8_t *data, size_t len);
|
|||||||
extern int cbor_reset();
|
extern int cbor_reset();
|
||||||
extern int cbor_get_info();
|
extern int cbor_get_info();
|
||||||
extern int cbor_make_credential(const uint8_t *data, size_t len);
|
extern int cbor_make_credential(const uint8_t *data, size_t len);
|
||||||
|
extern int cbor_client_pin(const uint8_t *data, size_t len);
|
||||||
extern const uint8_t aaguid[16];
|
extern const uint8_t aaguid[16];
|
||||||
|
|
||||||
extern const bool _btrue, _bfalse;
|
extern const bool _btrue, _bfalse;
|
||||||
@@ -41,7 +42,7 @@ extern const bool _btrue, _bfalse;
|
|||||||
error = f; \
|
error = f; \
|
||||||
if (error != CborNoError) \
|
if (error != CborNoError) \
|
||||||
{ \
|
{ \
|
||||||
printf("Cannot encode CBOR [%d]: %s\n", __LINE__, #f); \
|
printf("Cannot encode CBOR [%s:%d]: %s\n", __FILE__, __LINE__, #f); \
|
||||||
goto err; \
|
goto err; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
@@ -60,7 +61,7 @@ extern const bool _btrue, _bfalse;
|
|||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
error = e; \
|
error = e; \
|
||||||
printf("Cbor ERROR [%d]: %d\n", __LINE__, e); \
|
printf("Cbor ERROR [%s:%d]: %d\n", __FILE__, __LINE__, e); \
|
||||||
goto err; \
|
goto err; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
@@ -70,7 +71,7 @@ extern const bool _btrue, _bfalse;
|
|||||||
if (!c) \
|
if (!c) \
|
||||||
{ \
|
{ \
|
||||||
error = CborErrorImproperValue; \
|
error = CborErrorImproperValue; \
|
||||||
printf("Cbor ASSERT [%d]: %s\n", __LINE__, #c); \
|
printf("Cbor ASSERT [%s:%d]: %s\n", __FILE__, __LINE__, #c); \
|
||||||
goto err; \
|
goto err; \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user