Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added DPRINTF() macro to non-DEBUG builds |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
dc0365821dff992dc1138623c3fdca8d |
User & Date: | rkeene 2008-11-07 21:33:03 |
Context
2008-11-09
| ||
14:42 | Updated file_sync-standalone to compile on OpenBSD: - Reordered #includes - Changed implementation of ntohll() to use ntohl() to determine endian-ness check-in: 63e724bd6e user: rkeene tags: trunk | |
2008-11-07
| ||
21:33 | Added DPRINTF() macro to non-DEBUG builds check-in: dc0365821d user: rkeene tags: trunk | |
21:32 | Added standalone file_sync Updated file_sync to correct warnings issued by GCC4 check-in: 00184e2c99 user: rkeene tags: trunk | |
Changes
Changes to compat.h.
︙ | ︙ | |||
161 162 163 164 165 166 167 168 169 170 171 172 173 174 | #define DPERROR(x) PERROR(x) #define DPRINTF(x...) { PRINT_LINE; fprintf(stderr, x); fprintf(stderr, "\n"); } #else #define PRINT_LINE /**/ #define PRINTERR_D(x...) /**/ #define PERROR(x) perror(x); #define DPERROR(x) /**/ #endif #define CHECKPOINT PRINTERR_D("*** CHECKPOINT REACHED ***") #define SPOTVAR_LLX(x) PRINTERR_D(#x " = %llx", (unsigned long long) x) #define SPOTVAR_LLU(x) PRINTERR_D(#x " = %llu", (unsigned long long) x) #define SPOTVAR_LU(x) PRINTERR_D(#x " = %lu", (unsigned long) x) #define SPOTVAR_D(x) PRINTERR_D(#x " = %lf", x) #define SPOTVAR_X(x) PRINTERR_D(#x " = 0x%x", (unsigned int) x) | > | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | #define DPERROR(x) PERROR(x) #define DPRINTF(x...) { PRINT_LINE; fprintf(stderr, x); fprintf(stderr, "\n"); } #else #define PRINT_LINE /**/ #define PRINTERR_D(x...) /**/ #define PERROR(x) perror(x); #define DPERROR(x) /**/ #define DPRINTF(x...) /**/ #endif #define CHECKPOINT PRINTERR_D("*** CHECKPOINT REACHED ***") #define SPOTVAR_LLX(x) PRINTERR_D(#x " = %llx", (unsigned long long) x) #define SPOTVAR_LLU(x) PRINTERR_D(#x " = %llu", (unsigned long long) x) #define SPOTVAR_LU(x) PRINTERR_D(#x " = %lu", (unsigned long) x) #define SPOTVAR_D(x) PRINTERR_D(#x " = %lf", x) #define SPOTVAR_X(x) PRINTERR_D(#x " = 0x%x", (unsigned int) x) |
︙ | ︙ |