X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcodec_utils%2Fcommon%2Fasn_internal.h;h=0f850d2a4c87b7a7c37ddc25591ac2aec77d22fd;hb=8660dd47a5ef27b62300fabf6b027852f1d5d026;hp=c4105ad51e56496dbeb340ca8a1b99984d3d0276;hpb=451e626d5ac7c7e7586bab23358161230449af46;p=o-du%2Fl2.git diff --git a/src/codec_utils/common/asn_internal.h b/src/codec_utils/common/asn_internal.h old mode 100755 new mode 100644 index c4105ad51..0f850d2a4 --- a/src/codec_utils/common/asn_internal.h +++ b/src/codec_utils/common/asn_internal.h @@ -73,7 +73,15 @@ void CC_PRINTFLIKE(1, 2) ASN_DEBUG_f(const char *fmt, ...); #endif /* C99 */ #else /* ASN_EMIT_DEBUG != 1 */ #if __STDC_VERSION__ >= 199901L +#if 1 #define ASN_DEBUG(...) do{}while(0) +#else +#define ASN_DEBUG(fmt, args...) do { \ + fprintf(stderr, fmt, ##args); \ + fprintf(stderr, " (%s:%d)\n", \ + __FILE__, __LINE__); \ + } while(0) +#endif #else /* not C99 */ static void CC_PRINTFLIKE(1, 2) ASN_DEBUG(const char *fmt, ...) { (void)fmt; } #endif /* C99 or better */