mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-19 10:54:42 +08:00
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_get_info();
|
||||
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 bool _btrue, _bfalse;
|
||||
@@ -41,7 +42,7 @@ extern const bool _btrue, _bfalse;
|
||||
error = f; \
|
||||
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; \
|
||||
} \
|
||||
} while (0)
|
||||
@@ -60,7 +61,7 @@ extern const bool _btrue, _bfalse;
|
||||
do \
|
||||
{ \
|
||||
error = e; \
|
||||
printf("Cbor ERROR [%d]: %d\n", __LINE__, e); \
|
||||
printf("Cbor ERROR [%s:%d]: %d\n", __FILE__, __LINE__, e); \
|
||||
goto err; \
|
||||
} while(0)
|
||||
|
||||
@@ -70,7 +71,7 @@ extern const bool _btrue, _bfalse;
|
||||
if (!c) \
|
||||
{ \
|
||||
error = CborErrorImproperValue; \
|
||||
printf("Cbor ASSERT [%d]: %s\n", __LINE__, #c); \
|
||||
printf("Cbor ASSERT [%s:%d]: %s\n", __FILE__, __LINE__, #c); \
|
||||
goto err; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
Reference in New Issue
Block a user