| /redis-3.2.3/deps/lua/src/ |
| H A D | print.c | 57 printf("nil"); in PrintConstant() 88 printf("\t%d\t",pc+1); in PrintCode() 89 if (line>0) printf("[%d]\t",line); else printf("[-]\t"); in PrintCode() 94 printf("%d",a); in PrintCode() 99 if (getBMode(o)==OpArgK) printf("%d %d",a,-1-bx); else printf("%d %d",a,bx); in PrintCode() 102 if (o==OP_JMP) printf("%d",sbx); else printf("%d %d",a,sbx); in PrintCode() 133 printf("\t; "); in PrintCode() 135 printf(" "); in PrintCode() 154 printf("\n"); in PrintCode() 187 printf("\t%d\t",i+1); in PrintConstants() [all …]
|
| /redis-3.2.3/src/ |
| H A D | ziplist.c | 1030 printf( in ziplistRepr() 1040 printf( in ziplistRepr() 1071 printf("\n"); in ziplistRepr() 1161 printf("\n"); in pop() 1258 printf("\n"); in ziplistTest() 1272 printf("\n"); in ziplistTest() 1290 printf("\n"); in ziplistTest() 1308 printf("\n"); in ziplistTest() 1322 printf("\n"); in ziplistTest() 1340 printf("\n"); in ziplistTest() [all …]
|
| H A D | redis-check-aof.c | 144 printf("%s\n", error); in process() 160 printf("Invalid argument: %s\n", argv[1]); in main() 166 printf("Invalid arguments\n"); in main() 172 printf("Cannot open file: %s\n", filename); in main() 178 printf("Cannot stat file: %s\n", filename); in main() 184 printf("Empty file: %s\n", filename); in main() 196 printf("Continue? [y/N]: "); in main() 199 printf("Aborting...\n"); in main() 203 printf("Failed to truncate AOF\n"); in main() 209 printf("AOF is not valid\n"); in main() [all …]
|
| H A D | testhelp.h | 45 __test_num++; printf("%d - %s: ", __test_num, descr); \ 46 if(_c) printf("PASSED\n"); else {printf("FAILED\n"); __failed_tests++;} \ 49 printf("%d tests, %d passed, %d failed\n", __test_num, \ 52 printf("=== WARNING === We have failed tests here...\n"); \
|
| H A D | memtest.c | 66 printf("\x1b[H\x1b[2J"); /* Cursor home, clear screen. */ in memtest_progress_start() 68 for (j = 0; j < ws.ws_col*(ws.ws_row-2); j++) printf("."); in memtest_progress_start() 69 printf("Please keep the test running several minutes per GB of memory.\n"); in memtest_progress_start() 71 printf("\x1b[H\x1b[2K"); /* Cursor home, clear current line. */ in memtest_progress_start() 72 printf("%s [%d]\n", title, pass); /* Print title. */ in memtest_progress_start() 79 printf("\x1b[H\x1b[2J"); /* Cursor home, clear screen. */ in memtest_progress_end() 85 for (j = 0; j < chars-progress_printed; j++) printf("%c",c); in memtest_progress_step() 110 printf("\n*** MEMORY ADDRESSING ERROR: %p contains %lu\n", in memtest_addressing() 355 printf("\nYour memory passed this test.\n"); in memtest() 357 printf("1) memtest86: http://www.memtest86.com/\n"); in memtest() [all …]
|
| H A D | redis-cli.c | 331 printf( in cliOutputGenericHelp() 390 printf("\r\n"); in cliOutputHelp() 1385 printf( in evalMode() 1546 printf("\033[0m\n"); in showLatencyDistSamples() 1565 printf("\033[0m\n"); in showLatencyDistLegend() 2135 printf( in findBigKeys() 2183 printf("\n"); in findBigKeys() 2278 printf( in statMode() 2332 printf("AOF"); in statMode() 2342 printf("\n"); in statMode() [all …]
|
| H A D | zipmap.c | 377 printf("{status %u}",*p++); in zipmapRepr() 380 printf("{end}"); in zipmapRepr() 386 printf("{key %u}",l); in zipmapRepr() 392 printf("{value %u}",l); in zipmapRepr() 398 printf("["); in zipmapRepr() 399 while(e--) printf("."); in zipmapRepr() 400 printf("]"); in zipmapRepr() 404 printf("\n"); in zipmapRepr() 433 printf("\nLook up large key:\n"); in zipmapTest() 447 printf("\nPerform a direct lookup:\n"); in zipmapTest() [all …]
|
| H A D | redis-check-rdb.c | 93 printf("[info] %lu keys read\n", rdbstate.keys); in rdbShowGenericInfo() 94 printf("[info] %lu expires\n", rdbstate.expires); in rdbShowGenericInfo() 95 printf("[info] %lu already expired\n", rdbstate.already_expired); in rdbShowGenericInfo() 108 printf("--- RDB ERROR DETECTED ---\n"); in rdbCheckError() 109 printf("[offset %llu] %s\n", in rdbCheckError() 112 printf("[additional info] While doing: %s\n", in rdbCheckError() 115 printf("[additional info] Reading key '%s'\n", in rdbCheckError() 118 printf("[additional info] Reading type %d (%s)\n", in rdbCheckError() 135 printf("[offset %llu] %s\n", in rdbCheckInfo()
|
| H A D | intset.c | 293 printf("\n"); 297 printf("%s\n", err); 303 printf("OK\n"); in ok() 314 printf("\n\n=== ASSERTION FAILED ===\n"); in _assert() 361 printf("Value encodings: "); { in intsetTest() 377 printf("Basic adding: "); { in intsetTest() 386 printf("Large number of random adds: "); { in intsetTest() 398 printf("Upgrade from int16 to int32: "); { in intsetTest() 419 printf("Upgrade from int16 to int64: "); { in intsetTest() 461 printf("Stress lookups: "); { in intsetTest() [all …]
|
| H A D | redis-benchmark.c | 437 printf("====== %s ======\n", config.title); in showLatencyReport() 440 printf(" %d parallel clients\n", config.numclients); in showLatencyReport() 441 printf(" %d bytes payload\n", config.datasize); in showLatencyReport() 442 printf(" keep alive: %d\n", config.keepalive); in showLatencyReport() 443 printf("\n"); in showLatencyReport() 453 printf("%.2f requests per second\n\n", reqpersec); in showLatencyReport() 455 printf("\"%s\",\"%.2f\"\n", config.title, reqpersec); in showLatencyReport() 567 printf( in parseOptions() 623 printf("clients: %d\r", config.liveclients); in showThroughput() 629 printf("%s: %.2f\r", config.title, rps); in showThroughput() [all …]
|
| H A D | endianconv.c | 116 printf("%s\n", buf); in endianconvTest() 120 printf("%s\n", buf); in endianconvTest() 124 printf("%s\n", buf); in endianconvTest()
|
| H A D | quicklist.c | 1427 #define yell(str, ...) printf("ERROR! " str "\n\n", __VA_ARGS__) 1429 #define OK printf("\tOK\n") 1444 #define TEST(name) printf("test — %s\n", name); 1452 printf("Container length: %lu\n", ql->len); in ql_info() 1453 printf("Container size: %lu\n", ql->count); in ql_info() 1458 printf("\n"); in ql_info() 1627 printf("Testing Option %d\n", options[_i]); in quicklistTest() 2637 printf("\n"); in quicklistTest() 2639 printf("Test Loop %02d: %0.2f seconds.\n", options[i], in quicklistTest() 2642 printf("\n"); in quicklistTest() [all …]
|
| /redis-3.2.3/utils/hashtable/ |
| H A D | rehashing.c | 5 printf("ASSERT: %s %s %d\n",x,y,l); in _redisAssert() 38 printf("NULL\n"); in showBuckets() 44 printf("\n"); in showBuckets() 51 printf("rhidx: "); in show() 53 printf("."); in show() 54 printf("|\n"); in show() 56 printf("ht[0]: "); in show() 58 printf("ht[1]: "); in show() 60 printf("\n"); in show() 110 printf("Size: %d\n", (int)dictSize(d)); in main() [all …]
|
| /redis-3.2.3/deps/hiredis/examples/ |
| H A D | example.c | 18 printf("Connection error: %s\n", c->errstr); in main() 21 printf("Connection error: can't allocate redis context\n"); in main() 28 printf("PING: %s\n", reply->str); in main() 33 printf("SET: %s\n", reply->str); in main() 38 printf("SET (binary API): %s\n", reply->str); in main() 43 printf("GET foo: %s\n", reply->str); in main() 47 printf("INCR counter: %lld\n", reply->integer); in main() 51 printf("INCR counter: %lld\n", reply->integer); in main() 69 printf("%u) %s\n", j, reply->element[j]->str); in main()
|
| H A D | example-libev.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback() 21 printf("Error: %s\n", c->errstr); in connectCallback() 24 printf("Connected...\n"); in connectCallback() 29 printf("Error: %s\n", c->errstr); in disconnectCallback() 32 printf("Disconnected...\n"); in disconnectCallback() 41 printf("Error: %s\n", c->errstr); in main()
|
| H A D | example-libevent.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback() 21 printf("Error: %s\n", c->errstr); in connectCallback() 24 printf("Connected...\n"); in connectCallback() 29 printf("Error: %s\n", c->errstr); in disconnectCallback() 32 printf("Disconnected...\n"); in disconnectCallback() 42 printf("Error: %s\n", c->errstr); in main()
|
| H A D | example-libuv.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback() 21 printf("Error: %s\n", c->errstr); in connectCallback() 24 printf("Connected...\n"); in connectCallback() 29 printf("Error: %s\n", c->errstr); in disconnectCallback() 32 printf("Disconnected...\n"); in disconnectCallback() 42 printf("Error: %s\n", c->errstr); in main()
|
| H A D | example-ae.c | 16 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback() 24 printf("Error: %s\n", c->errstr); in connectCallback() 29 printf("Connected...\n"); in connectCallback() 34 printf("Error: %s\n", c->errstr); in disconnectCallback() 39 printf("Disconnected...\n"); in disconnectCallback() 49 printf("Error: %s\n", c->errstr); in main()
|
| /redis-3.2.3/deps/lua/etc/ |
| H A D | min.c | 18 if (i>1) printf("\t"); in print() 20 printf("%s",lua_tostring(L,i)); in print() 22 printf("%s","nil"); in print() 24 printf("%s",lua_toboolean(L,i) ? "true" : "false"); in print() 26 printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); in print() 28 printf("\n"); in print()
|
| /redis-3.2.3/deps/ |
| H A D | Makefile | 46 @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 52 @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 71 @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 80 @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 87 @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | test.c | 37 #define test(_s) { printf("#%02d ", ++tests); printf(_s); } 38 #define test_cond(_c) if(_c) printf("\033[0;32mPASSED\033[0;0m\n"); else {printf("\033[0;31mFAILED\… 61 printf("Database #9 is not empty, test can not continue\n"); in select_database() 98 printf("Connecting to inherited fd %d\n", fd); in connect() 106 printf("Connection error: can't allocate redis context\n"); in connect() 109 printf("Connection error: %s\n", c->errstr); in connect() 519 printf("\t(%dx PING: %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput() 545 printf("\t(%dx PING (pipelined): %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput() 721 printf("\nTesting against inherited fd (%s):\n", cfg.unix.path); in main() 727 printf("*** %d TESTS FAILED ***\n", fails); in main() [all …]
|
| /redis-3.2.3/deps/linenoise/ |
| H A D | example.c | 33 printf("Multi-line mode enabled.\n"); in main() 61 printf("echo: '%s'\n", line); in main() 69 printf("Unreconized command: %s\n", line); in main()
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | printf.lua | 3 function printf(...) function 7 printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())
|
| H A D | README | 18 printf.lua an implementation of printf
|
| /redis-3.2.3/utils/ |
| H A D | corrupt_rdb.c | 40 printf("Writing %d bytes at offset %lu\n", writelen, offset); in main()
|