rc = llog_cat_id2handle(env, cathandle, &loghandle, lgl);
if (rc) {
- CERROR("Cannot find log "LPX64"\n", lgl->lgl_oid);
+ CERROR("%s: cannot find handle for llog "LPX64": %d\n",
+ cathandle->lgh_ctxt->loc_obd->obd_name,
+ lgl->lgl_oid, rc);
break;
}
rec->lrh_index, cat_llh->lgh_id.lgl_oid);
rc = llog_cat_id2handle(env, cat_llh, &llh, &lir->lid_id);
- if (rc) {
- CERROR("Cannot find handle for log "LPX64"\n",
- lir->lid_id.lgl_oid);
- RETURN(rc);
- }
+ if (rc) {
+ CERROR("%s: cannot find handle for llog "LPX64": %d\n",
+ cat_llh->lgh_ctxt->loc_obd->obd_name,
+ lir->lid_id.lgl_oid, rc);
+ RETURN(rc);
+ }
if (rec->lrh_index < d->lpd_startcat)
/* Skip processing of the logs until startcat */
le32_to_cpu(rec->lrh_index), cat_llh->lgh_id.lgl_oid);
rc = llog_cat_id2handle(env, cat_llh, &llh, &lir->lid_id);
- if (rc) {
- CERROR("Cannot find handle for log "LPX64"\n",
- lir->lid_id.lgl_oid);
- RETURN(rc);
- }
+ if (rc) {
+ CERROR("%s: cannot find handle for llog "LPX64": %d\n",
+ cat_llh->lgh_ctxt->loc_obd->obd_name,
+ lir->lid_id.lgl_oid, rc);
+ RETURN(rc);
+ }
rc = llog_reverse_process(env, llh, d->lpd_cb, d->lpd_data, NULL);
RETURN(rc);
rc = llog_cat_id2handle(env, cathandle, &loghandle, &lir->lid_id);
if (rc) {
- CERROR("%s: cannot find handle for llog "LPX64"\n: %d",
- loghandle->lgh_ctxt->loc_obd->obd_name,
+ CERROR("%s: cannot find handle for llog "LPX64": %d\n",
+ cathandle->lgh_ctxt->loc_obd->obd_name,
lir->lid_id.lgl_oid, rc);
if (rc == -ENOENT || rc == -ESTALE) {
index = rec->lrh_index;