]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
ibacm: Fix a log option error
authorKaike Wan <kaike.wan@intel.com>
Tue, 10 Jun 2014 20:02:37 +0000 (13:02 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 10 Jun 2014 20:02:37 +0000 (13:02 -0700)
Also log the addr and options file so that the user
clearly knows the file location.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c

index 404daee5c3cda17819e7a1e02f4d3b2b06d9462c..8be0b96395a8a53712d3390b4a407fd8d32b37f7 100644 (file)
--- a/src/acm.c
+++ b/src/acm.c
@@ -2410,13 +2410,15 @@ static void acm_set_options(void)
 
 static void acm_log_options(void)
 {
-       acm_log(0, "log file %s\n", opts_file);
+       acm_log(0, "log file %s\n", log_file);
        acm_log(0, "log level %d\n", log_level);
        acm_log(0, "lock file %s\n", lock_file);
        acm_log(0, "server_port %d\n", server_port);
        acm_log(0, "timeout %d ms\n", sa.timeout);
        acm_log(0, "retries %d\n", sa.retries);
        acm_log(0, "sa depth %d\n", sa.depth);
+       acm_log(0, "options file %s\n", opts_file);
+       acm_log(0, "addr file %s\n", addr_file);
        acm_log(0, "provider lib path %s\n", prov_lib_path);
        acm_log(0, "support IP's in ibacm_addr.cfg %d\n", support_ips_in_addr_cfg);
 }