From 3e5e929addceaf9623796705d611162de67c5756 Mon Sep 17 00:00:00 2001 From: chas williams - CONTRACTOR Date: Mon, 28 Jan 2013 09:58:35 -0500 Subject: [PATCH] LU-2697 osp: remove trailing newline on thread names The trailing newline on the thread name causes confusion with some utilities that examine this string. Signed-off-by: chas williams - CONTRACTOR Change-Id: I031aafd2541b1829bc721ebcb9f52cb5e73101b3 Reviewed-on: http://review.whamcloud.com/5189 Reviewed-by: Bob Glossman Reviewed-by: Nathaniel Clark Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/osp/osp_precreate.c | 2 +- lustre/osp/osp_sync.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/osp/osp_precreate.c b/lustre/osp/osp_precreate.c index 0a0f9f0..1196991 100644 --- a/lustre/osp/osp_precreate.c +++ b/lustre/osp/osp_precreate.c @@ -881,7 +881,7 @@ static int osp_precreate_thread(void *_arg) ENTRY; - sprintf(pname, "osp-pre-%u\n", d->opd_index); + sprintf(pname, "osp-pre-%u", d->opd_index); cfs_daemonize(pname); rc = lu_env_init(&env, d->opd_dt_dev.dd_lu_dev.ld_type->ldt_ctx_tags); diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c index 0616e87..fc67e5c 100644 --- a/lustre/osp/osp_sync.c +++ b/lustre/osp/osp_sync.c @@ -844,7 +844,7 @@ static int osp_sync_thread(void *_arg) RETURN(rc); } - sprintf(pname, "osp-syn-%u\n", d->opd_index); + sprintf(pname, "osp-syn-%u", d->opd_index); cfs_daemonize(pname); spin_lock(&d->opd_syn_lock); -- 1.8.3.1