diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-01 21:57:19 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-01 21:57:19 +0000 |
commit | 80e2cacb03ef09a91b50be9b698fc53883e89b91 (patch) | |
tree | 97bbf1cfc0f89395af089f7d572d8eb98f50e084 /usr.sbin/hoststatectl/hoststatectl.c | |
parent | 38440244b554d891b09ea6f821edf556b581569a (diff) |
print id name in the monitor output if available
Diffstat (limited to 'usr.sbin/hoststatectl/hoststatectl.c')
-rw-r--r-- | usr.sbin/hoststatectl/hoststatectl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/hoststatectl/hoststatectl.c b/usr.sbin/hoststatectl/hoststatectl.c index 8097ec01497..b37f84ad7a2 100644 --- a/usr.sbin/hoststatectl/hoststatectl.c +++ b/usr.sbin/hoststatectl/hoststatectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hoststatectl.c,v 1.11 2007/02/01 21:01:10 reyk Exp $ */ +/* $OpenBSD: hoststatectl.c,v 1.12 2007/02/01 21:57:18 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -248,6 +248,8 @@ monitor_id(struct imsg *imsg) memcpy(&id, imsg->data, sizeof(id)); printf("\tid: %u\n", id.id); + if (strlen(id.name)) + printf("\tname: %s\n", id.name); } int |