summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/primary.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-25 20:13:38 +0000
committerpjd <pjd@FreeBSD.org>2011-03-25 20:13:38 +0000
commitf6f9894d9f38649f73702b3f122ff034eee36dbe (patch)
treebc28dab0d53c071d682e8824366bb0d19518181e /sbin/hastd/primary.c
parent15ff949f29fb67c87a63a332b0078a87a5bf9027 (diff)
downloadFreeBSD-src-f6f9894d9f38649f73702b3f122ff034eee36dbe.zip
FreeBSD-src-f6f9894d9f38649f73702b3f122ff034eee36dbe.tar.gz
Use role2str() when setting process title.
MFC after: 1 week
Diffstat (limited to 'sbin/hastd/primary.c')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 966973b..25322c0 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -868,7 +868,7 @@ hastd_primary(struct hast_resource *res)
pjdlog_init(mode);
pjdlog_debug_set(debuglevel);
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
- setproctitle("%s (primary)", res->hr_name);
+ setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
init_local(res);
init_ggate(res);
OpenPOWER on IntegriCloud