summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-23 16:03:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-23 16:03:41 +0000
commit275d9c4ca29223e5ddb3269776cebe0ca186031e (patch)
tree33a5822496caa260ff185db4560c7607b24a4d7e /src
parent51bbbd6f56ac950b68e5e6416283aa6f3f0cc1b7 (diff)
downloadzabbix-275d9c4ca29223e5ddb3269776cebe0ca186031e.tar.gz
zabbix-275d9c4ca29223e5ddb3269776cebe0ca186031e.tar.xz
zabbix-275d9c4ca29223e5ddb3269776cebe0ca186031e.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2076 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/libs/zbxsysinfo/sysinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libs/zbxsysinfo/sysinfo.c b/src/libs/zbxsysinfo/sysinfo.c
index 5221458a..07e61010 100644
--- a/src/libs/zbxsysinfo/sysinfo.c
+++ b/src/libs/zbxsysinfo/sysinfo.c
@@ -451,7 +451,14 @@ void test_parameters(void)
while(0 != commands[i].key)
{
process(commands[i].key,c,1);
- printf("Key: [%s]\tResult: [%s]\n",commands[i].key,c);
+ if((commands[i].parameter==0))
+ {
+ printf("%-30s [%s]\n",commands[i].key,c);
+ }
+ else
+ {
+ printf("%-30s[%s] [%s]\n",commands[i].key,commands[i].parameter,c);
+ }
fflush(stdout);
i++;
}