charging_mask= 0;
alarmed = 0;
+ if (debug) printf("\n");
+
#define Q_ZERO(f,t,...) \
total_##f= 0;
ALL_ACCUMULATE_FIELDS(Q_ZERO)
}
closedir(di);
- printf("TOTAL:\n");
+ if (debug) {
+ printf("TOTAL:\n");
+ printf(" %-30s = %#20x\n", "mask", charging_mask);
#define T_PRINT(f,...) \
printf(" %-30s = %20.6f\n", #f, total_##f);
BAT_QTYS(T_PRINT,,,)