* which isn't allowed */
if ((kiov[i].kiov_offset != 0 && i > 0) ||
(kiov[i].kiov_offset + kiov[i].kiov_len != PAGE_SIZE && i < niov - 1)) {
- CNETERR("Can't make payload contiguous in I/O VM:"
- "page %d, offset %u, nob %u, kiov_offset %u kiov_len %u \n",
+ CNETERR("Can't make payload contiguous in I/O VM: page %d, offset %u, nob %u, kiov_offset %u, kiov_len %u\n",
i, offset, nob, kiov->kiov_offset, kiov->kiov_len);
RETURN(-EINVAL);
}
if ((phys != tx->tx_phys) &&
((kiov->kiov_offset != 0) ||
((kiov->kiov_len < PAGE_SIZE) && (nob > kiov->kiov_len)))) {
- CERROR("Can't make payload contiguous in I/O VM:"
- "page %d, offset %u, nob %u, kiov_offset %u kiov_len %u \n",
+ CERROR("Can't make payload contiguous in I/O VM: page %d, offset %u, nob %u, kiov_offset %u, kiov_len %u\n",
(int)(phys - tx->tx_phys),
offset, nob, kiov->kiov_offset, kiov->kiov_len);
rc = -EINVAL;
/* another thread is allocating a new pool */
spin_unlock(&ps->ps_lock);
trips++;
- CDEBUG(D_NET, "Another thread is allocating new "
- "%s pool, waiting %d HZs for her to complete."
- "trips = %d\n",
+ CDEBUG(D_NET,
+ "Another thread is allocating new %s pool, waiting %d jiffies for her to complete. trips = %d\n",
ps->ps_name, interval, trips);
schedule_timeout_interruptible(interval);
rc = dispatch_tbl[token.type](&token, &tree);
if (rc != CYAML_ERROR_NONE) {
snprintf(err_str, sizeof(err_str),
- "Failed to handle token:%d %s"
- "[state=%d, rc=%d]",
+ "Failed to handle token:%d %s [state=%d, rc=%d]",
token.type, token_type_string[token.type],
tree.state, rc);
cYAML_build_error(-1, -1, "yaml", "builder",
rc = seq_client_alloc_meta(env, seq);
if (rc) {
if (rc != -EINPROGRESS)
- CERROR("%s: Can't allocate new meta-sequence,"
- "rc = %d\n", seq->lcs_name, rc);
+ CERROR("%s: Cannot allocate new meta-sequence: rc = %d\n",
+ seq->lcs_name, rc);
RETURN(rc);
} else {
CDEBUG(D_INFO, "%s: New range - "DRANGE"\n",
if (it->it_remote_lock_mode != 0) {
handle.cookie = it->it_remote_lock_handle;
- CDEBUG(D_DLMTRACE, "releasing remote lock with cookie"
- "%#llx from it %p\n", handle.cookie, it);
+ CDEBUG(D_DLMTRACE,
+ "releasing remote lock with cookie %#llx from it %p\n",
+ handle.cookie, it);
ldlm_lock_decref(&handle,
it->it_remote_lock_mode);
it->it_remote_lock_mode = 0;
else
pos = 0;
- CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p) pos/size"
- "%lu/%llu 32bit_api %d\n", PFID(ll_inode2fid(inode)),
+ CDEBUG(D_VFSTRACE,
+ "VFS Op:inode="DFID"(%p) pos/size%lu/%llu 32bit_api %d\n",
+ PFID(ll_inode2fid(inode)),
inode, (unsigned long)pos, i_size_read(inode), api32);
if (pos == MDS_DIR_END_OFF)
if (advice > LU_LADVISE_MAX || advice == LU_LADVISE_INVALID) {
rc = -EINVAL;
- CDEBUG(D_VFSTRACE, "%s: advice with value '%d' not recognized,"
- "last supported advice is %s (value '%d'): rc = %d\n",
+ CDEBUG(D_VFSTRACE,
+ "%s: advice with value '%d' not recognized, last supported advice is %s (value '%d'): rc = %d\n",
sbi->ll_fsname, advice,
ladvise_names[LU_LADVISE_MAX-1], LU_LADVISE_MAX-1, rc);
GOTO(out, rc);
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p), start %lld, end %lld,"
- "datasync %d\n",
+ CDEBUG(D_VFSTRACE,
+ "VFS Op:inode="DFID"(%p), start %lld, end %lld, datasync %d\n",
PFID(ll_inode2fid(inode)), inode, start, end, datasync);
/* fsync's caller has already called _fdata{sync,write}, we want
int rc = 0;
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s, dir="DFID"(%p), file %p,"
- "open_flags %x, mode %x opened %d\n",
+ CDEBUG(D_VFSTRACE,
+ "VFS Op:name=%.*s, dir="DFID"(%p), file %p, open_flags %x, mode %x opened %d\n",
dentry->d_name.len, dentry->d_name.name,
PFID(ll_inode2fid(dir)), dir, file, open_flags, mode,
ll_is_opened(opened, file));
if (!fid_is_norm(f) && !fid_is_igif(f) && !fid_is_root(f) &&
!fid_seq_is_dot(f->f_seq)) {
- CWARN("%s: Trying to lookup invalid FID "DFID" in %s/%s, "
- "sequence should be >= %#llx or within [%#llx,"
- "%#llx].\n", mdd2obd_dev(mdd)->obd_name, PFID(f),
+ CWARN("%s: Trying to lookup invalid FID "DFID" in %s/%s, sequence should be >= %#llx or within [%#llx, %#llx].\n",
+ mdd2obd_dev(mdd)->obd_name, PFID(f),
dot_lustre_name, mdd_obf_dir_name, (__u64)FID_SEQ_NORMAL,
(__u64)FID_SEQ_IGIF, (__u64)FID_SEQ_IGIF_MAX);
GOTO(out, rc = -EINVAL);
rc = lu_env_init(&env, LCT_MD_THREAD);
if (unlikely(rc != 0)) {
- CWARN("%s: lu_env initialization failed, object"
- "%p "DFID" is leaked!\n",
+ CWARN("%s: lu_env initialization failed, object %p "DFID" is leaked!: rc = %d\n",
obd->obd_name, mo,
- PFID(mdt_object_fid(mo)));
+ PFID(mdt_object_fid(mo)), rc);
RETURN(rc);
}
if (rc)
GOTO(out, rc);
- CDEBUG(D_OTHER, "looking for log index %u (cur idx %u off"
- "%llu), size %llu\n", next_idx, *cur_idx,
+ CDEBUG(D_OTHER,
+ "looking for log index %u (cur idx %u off %llu), size %llu\n",
+ next_idx, *cur_idx,
*cur_offset, lgi->lgi_attr.la_size);
while (*cur_offset < lgi->lgi_attr.la_size) {
if ((oscl->ols_flags & LDLM_FL_NO_EXPANSION) &&
!(exp_connect_lockahead_old(exp) || exp_connect_lockahead(exp))) {
result = -EOPNOTSUPP;
- CERROR("%s: server does not support lockahead/locknoexpand:"
- "rc = %d\n", exp->exp_obd->obd_name, result);
+ CERROR("%s: server does not support lockahead/locknoexpand: rc = %d\n",
+ exp->exp_obd->obd_name, result);
RETURN(result);
}
}
spin_unlock(&cli->cl_loi_list_lock);
- CDEBUG(D_CACHE, "%s, setting cl_avail_grant: %ld cl_lost_grant: %ld."
- "chunk bits: %d cl_max_extent_pages: %d\n",
- cli_name(cli),
- cli->cl_avail_grant, cli->cl_lost_grant, cli->cl_chunkbits,
- cli->cl_max_extent_pages);
+ CDEBUG(D_CACHE,
+ "%s, setting cl_avail_grant: %ld cl_lost_grant: %ld. chunk bits: %d cl_max_extent_pages: %d\n",
+ cli_name(cli),
+ cli->cl_avail_grant, cli->cl_lost_grant, cli->cl_chunkbits,
+ cli->cl_max_extent_pages);
if (OCD_HAS_FLAG(ocd, GRANT_SHRINK) && list_empty(&cli->cl_grant_chain))
osc_add_grant_list(cli);
sa_object_size(obj->oo_sa_hdl, &blksize, &bspace);
bspace = toqb(bspace * 512);
- CDEBUG(D_QUOTA, "%s: enforce quota on UID %u, GID %u,"
- "the quota space is %lld (%u)\n", osd->od_svname,
+ CDEBUG(D_QUOTA,
+ "%s: enforce quota on UID %u, GID %u, the quota space is %lld (%u)\n",
+ osd->od_svname,
attr->la_uid, attr->la_gid, bspace, blksize);
}
if (d->opd_pre == NULL)
RETURN(0);
- CDEBUG(D_OTHER, "%s: %llu blocks, %llu free, %llu avail, "
- "%u reserved mb low, %u reserved mb high,"
- "%llu files, %llu free files\n", d->opd_obd->obd_name,
+ CDEBUG(D_OTHER,
+ "%s: %llu blocks, %llu free, %llu avail, %u reserved mb low, %u reserved mb high, %llu files, %llu free files\n",
+ d->opd_obd->obd_name,
sfs->os_blocks, sfs->os_bfree, sfs->os_bavail,
d->opd_reserved_mb_low, d->opd_reserved_mb_high,
sfs->os_files, sfs->os_ffree);
ptlrpc_prepare_replay(imp);
rc = ptlrpc_import_recovery_state_machine(imp);
if (rc == -ENOTCONN) {
- CDEBUG(D_HA, "evicted/aborted by %s@%s during recovery;"
- "invalidating and reconnecting\n",
+ CDEBUG(D_HA,
+ "evicted/aborted by %s@%s during recovery; invalidating and reconnecting\n",
obd2cli_tgt(imp->imp_obd),
imp->imp_connection->c_remote_uuid.uuid);
ptlrpc_connect_import(imp);
* have a specific dumper
*/
len = req_capsule_get_size(pill, field, loc);
- CDEBUG(D_RPCTRACE, "Field %s has no dumper function;"
- "field size is %u\n", field->rmf_name, len);
+ CDEBUG(D_RPCTRACE,
+ "Field %s has no dumper function; field size is %u\n",
+ field->rmf_name, len);
} else {
/* It's dumping side-effect that we're interested in */
(void) __req_capsule_get(pill, field, loc, NULL, 1);
OBD_ALLOC_PTR(nodemap);
if (nodemap == NULL) {
- CERROR("cannot allocate memory (%zu bytes)"
- "for nodemap '%s'\n", sizeof(*nodemap),
- name);
+ CERROR("cannot allocate memory (%zu bytes) for nodemap '%s'\n",
+ sizeof(*nodemap), name);
GOTO(out, rc = -ENOMEM);
}
rc = lquota_disk_write(env, th, slv_obj, &lqe->lqe_id,
(struct dt_rec *)rec, flags, ver);
if (rc) {
- LQUOTA_ERROR(lqe, "failed to update slave index "DFID" granted:"
- "%llu", PFID(lu_object_fid(&slv_obj->do_lu)),
+ LQUOTA_ERROR(lqe,
+ "failed to update slave index "DFID" granted:%llu",
+ PFID(lu_object_fid(&slv_obj->do_lu)),
granted);
RETURN(rc);
}
now = ktime_get_real_seconds();
lqe_write_lock(lqe);
- LQUOTA_DEBUG(lqe, "changing quota settings valid:%x hard:%llu soft:"
- "%llu time:%llu", valid, hard, soft, time);
+ LQUOTA_DEBUG(lqe,
+ "changing quota settings valid:%x hard:%llu soft:%llu time:%llu",
+ valid, hard, soft, time);
if (is_default && lqe->lqe_id.qid_uid != 0) {
LQUOTA_DEBUG(lqe, "set qid %llu to use default quota setting",
if (slv_granted < qb_count ||
lqe->lqe_granted < qb_count) {
/* can't release more than granted */
- LQUOTA_ERROR(lqe, "Release too much! uuid:%s release:"
- "%llu granted:%llu, total:%llu",
+ LQUOTA_ERROR(lqe,
+ "Release too much! uuid:%s release:%llu granted:%llu, total:%llu",
obd_uuid2str(uuid), qb_count,
slv_granted, lqe->lqe_granted);
GOTO(out_locked, rc = -EINVAL);
{
printf("reads: read random or stride chunks of a file.\n");
printf("Usage:\n\n");
- printf("reads -f <filename> -s <filesize> -b <buffersize>"
- "-a <adjacent reads> [-v] [-h] [-C] [-l <stride_length> ] "
- "[ -o <stride_offset> ] [-S <seed>] [-n <iterations>]"
- "[-w <width>] [-t <timelimit>]\n");
+ printf("reads -f <filename> -s <filesize> -b <buffersize> -a <adjacent reads> [-v] [-h] [-C] [-l <stride_length> ] [ -o <stride_offset> ] [-S <seed>] [-n <iterations>][-w <width>] [-t <timelimit>]\n");
}
enum {