[Pcsclite-cvs-commit] r6968 - trunk/Drivers/ccid/src
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Tue Sep 2 13:55:32 UTC 2014
Author: rousseau
Date: 2014-09-02 13:55:31 +0000 (Tue, 02 Sep 2014)
New Revision: 6968
Modified:
trunk/Drivers/ccid/src/ccid.c
Log:
Enable effect of --enable-embedded on ccid_error()
Do nothing in ccid_error() if NO_LOG is defined.
'objdump -h --section=.rodata libccid.so' shows a gain of 240 bytes.
Modified: trunk/Drivers/ccid/src/ccid.c
===================================================================
--- trunk/Drivers/ccid/src/ccid.c 2014-09-02 13:50:50 UTC (rev 6967)
+++ trunk/Drivers/ccid/src/ccid.c 2014-09-02 13:55:31 UTC (rev 6968)
@@ -523,6 +523,7 @@
****************************************************************************/
void ccid_error(int error, const char *file, int line, const char *function)
{
+#ifndef NO_LOG
const char *text;
char var_text[30];
@@ -640,6 +641,7 @@
break;
}
log_msg(PCSC_LOG_ERROR, "%s:%d:%s %s", file, line, function, text);
+#endif
} /* ccid_error */
More information about the Pcsclite-cvs-commit
mailing list