osc_obd->obd_type->typ_name,
osc_obd->obd_name);
if (osc_symlink == NULL) {
- CERROR("could not register LOV target "
- "/proc/fs/lustre/%s/%s/target_obds/%s.",
+ CERROR("cannot register LOV target "
+ "/proc/fs/lustre/%s/%s/target_obds/%s\n",
obd->obd_type->typ_name, obd->obd_name,
osc_obd->obd_name);
- }
- }
- RETURN(0);
+ }
+ }
+ RETURN(0);
}
static int lov_connect(const struct lu_env *env,
obd->obd_proc_entry,
NULL, NULL);
if (IS_ERR(lov->targets_proc_entry)) {
- CERROR("%s: could not register /proc/fs/lustre/%s/%s/target_obds.",
+ CERROR("%s: cannot register "
+ "/proc/fs/lustre/%s/%s/target_obds\n",
obd->obd_name, obd->obd_type->typ_name, obd->obd_name);
lov->targets_proc_entry = NULL;
}
lov->desc.ld_active_tgt_count--;
lov->lov_tgts[index]->ltd_exp->exp_obd->obd_inactive = 1;
}
- } else {
- CERROR("Unknown event(%d) for uuid %s", ev, uuid->uuid);
- }
+ } else {
+ CERROR("%s: unknown event %d for uuid %s\n", obd->obd_name,
+ ev, uuid->uuid);
+ }
out:
- obd_putref(obd);
- RETURN(index);
+ obd_putref(obd);
+ RETURN(index);
}
static int lov_notify(struct obd_device *obd, struct obd_device *watched,
oqctl->qc_cmd != Q_INITQUOTA &&
oqctl->qc_cmd != LUSTRE_Q_SETQUOTA &&
oqctl->qc_cmd != Q_FINVALIDATE) {
- CERROR("bad quota opc %x for lov obd", oqctl->qc_cmd);
- RETURN(-EFAULT);
- }
+ CERROR("%s: bad quota opc %x for lov obd\n",
+ obd->obd_name, oqctl->qc_cmd);
+ RETURN(-EFAULT);
+ }
/* for lov tgt */
obd_getref(obd);