memtest.c now can be called as API in non interactive mode.

This commit is contained in:
antirez
2015-12-16 12:31:42 +01:00
parent f034a075b9
commit 4fee390335
2 changed files with 74 additions and 44 deletions

View File

@ -1650,6 +1650,7 @@ void enableWatchdog(int period);
void disableWatchdog(void);
void watchdogScheduleSignal(int period);
void serverLogHexDump(int level, char *descr, void *value, size_t len);
int memtest_test(unsigned long *m, size_t bytes, int passes, int interactive);
#define redisDebug(fmt, ...) \
printf("DEBUG %s:%d > " fmt "\n", __FILE__, __LINE__, __VA_ARGS__)