Skip to content
Snippets Groups Projects
Commit 46755ce2 authored by Lev Walkin's avatar Lev Walkin
Browse files

allow td to be absent when printing out debug

parent 5036c808
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ typedef struct asn_enc_rval_s { ...@@ -62,7 +62,7 @@ typedef struct asn_enc_rval_s {
tmp_error.encoded = -1; \ tmp_error.encoded = -1; \
tmp_error.failed_type = td; \ tmp_error.failed_type = td; \
tmp_error.structure_ptr = sptr; \ tmp_error.structure_ptr = sptr; \
ASN_DEBUG("Failed to encode element %s", td->name); \ ASN_DEBUG("Failed to encode element %s", td ? td->name : ""); \
return tmp_error; \ return tmp_error; \
} while(0) } while(0)
#define _ASN_ENCODED_OK(rval) do { \ #define _ASN_ENCODED_OK(rval) do { \
...@@ -92,7 +92,7 @@ typedef struct asn_dec_rval_s { ...@@ -92,7 +92,7 @@ typedef struct asn_dec_rval_s {
asn_dec_rval_t tmp_error; \ asn_dec_rval_t tmp_error; \
tmp_error.code = RC_FAIL; \ tmp_error.code = RC_FAIL; \
tmp_error.consumed = 0; \ tmp_error.consumed = 0; \
ASN_DEBUG("Failed to decode element %s", td->name); \ ASN_DEBUG("Failed to decode element %s", td ? td->name : ""); \
return tmp_error; \ return tmp_error; \
} while(0) } while(0)
#define _ASN_DECODE_STARVED do { \ #define _ASN_DECODE_STARVED do { \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment