llog_init_handle(llh, LLOG_F_IS_CAT, &uuid);
CWARN("5b: print the catalog entries.. we expect 2\n");
- rc = llog_process(llh, cat_print_cb, "test 5", NULL);
+ rc = llog_process(NULL, llh, cat_print_cb, "test 5", NULL);
if (rc) {
CERROR("5b: process with cat_print_cb failed: %d\n", rc);
GOTO(out, rc);
}
CWARN("5c: Cancel 40000 records, see one log zapped\n");
- rc = llog_cat_process(llh, llog_cancel_rec_cb, "foobar", 0, 0);
+ rc = llog_cat_process(NULL, llh, llog_cancel_rec_cb, "foobar", 0, 0);
if (rc != -4711) {
CERROR("5c: process with cat_cancel_cb failed: %d\n", rc);
GOTO(out, rc);
}
CWARN("5b: print the catalog entries.. we expect 1\n");
- rc = llog_process(llh, cat_print_cb, "test 5", NULL);
+ rc = llog_process(NULL, llh, cat_print_cb, "test 5", NULL);
if (rc) {
CERROR("5b: process with cat_print_cb failed: %d\n", rc);
GOTO(out, rc);
}
CWARN("5e: print plain log entries.. expect 6\n");
- rc = llog_cat_process(llh, plain_print_cb, "foobar", 0, 0);
+ rc = llog_cat_process(NULL, llh, plain_print_cb, "foobar", 0, 0);
if (rc) {
CERROR("5e: process with plain_print_cb failed: %d\n", rc);
GOTO(out, rc);
}
CWARN("5f: print plain log entries reversely.. expect 6\n");
- rc = llog_cat_reverse_process(llh, plain_print_cb, "foobar");
+ rc = llog_cat_reverse_process(NULL, llh, plain_print_cb, "foobar");
if (rc) {
CERROR("5f: reversely process with plain_print_cb failed: %d\n", rc);
GOTO(out, rc);
GOTO(parse_out, rc);
}
- rc = llog_process(llh, plain_print_cb, NULL, NULL);
+ rc = llog_process(NULL, llh, plain_print_cb, NULL, NULL);
if (rc)
CERROR("6: llog_process failed %d\n", rc);
- rc = llog_reverse_process(llh, plain_print_cb, NULL, NULL);
+ rc = llog_reverse_process(NULL, llh, plain_print_cb, NULL, NULL);
if (rc)
CERROR("6: llog_reverse_process failed %d\n", rc);