Debugging function to log the full content of a listpack. Useful * for development and debugging. */
| 356 | /* Debugging function to log the full content of a listpack. Useful |
| 357 | * for development and debugging. */ |
| 358 | void streamLogListpackContent(unsigned char *lp) { |
| 359 | unsigned char *p = lpFirst(lp); |
| 360 | while(p) { |
| 361 | unsigned char buf[LP_INTBUF_SIZE]; |
| 362 | int64_t v; |
| 363 | unsigned char *ele = lpGet(p,&v,buf); |
| 364 | serverLog(LL_WARNING,"- [%d] '%.*s'", (int)v, (int)v, ele); |
| 365 | p = lpNext(lp,p); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | /* Convert the specified stream entry ID as a 128 bit big endian number, so |
| 370 | * that the IDs can be sorted lexicographically. */ |