[openib-general] [PATCH] libsdp debug output
Grant Grundler
iod00d at hp.com
Fri Apr 1 17:43:03 PST 2005
Hi,
I found this output from libsdp.so less than helpful:
default libsdp configuration is used
First, I need a clue what the default location is if I just want
to hack the file. I was expecting it to live in /etc/libsdp.conf
based on email describing gen1 in 2004:
http://openib.org/pipermail/openib-general/2004-June/003222.html
Secondly, the "make install" puts the libsdp.so in /usr/local/etc
by default. That's ok if the lib tells me that.
A future enhancement would be *always* print the path
if a "verbose=1" (or something) exists the .conf file.
At some point, customers don't want to know.
I don't mind it since it's a good remind when I'm testing.
thanks,
grant
Signed-off-by; Grant Grundler <iod00d at hp.com>
Index: src/userspace/libsdp/src/port.c
===================================================================
--- src/userspace/libsdp/src/port.c (revision 2103)
+++ src/userspace/libsdp/src/port.c (working copy)
@@ -1202,8 +1202,10 @@ void __sdp_init(
if (config_file) {
__sdp_read_config(config_file);
} else {
- printf("default libsdp configuration is used\n");
-#define LIBSDP_DEFAULT_CONFIG_FILE "/usr/local/ibgd/etc/libsdp.conf"
+/* #define LIBSDP_DEFAULT_CONFIG_FILE "/etc/libsdp.conf" */
+#define LIBSDP_DEFAULT_CONFIG_FILE "/usr/local/etc/libsdp.conf"
+ printf("libsdp.so: $LIBSDP_CONFIG_FILE not set. Using "
+ LIBSDP_DEFAULT_CONFIG_FILE "\n");
__sdp_read_config(LIBSDP_DEFAULT_CONFIG_FILE);
}
} /* __sdp_init */
More information about the general
mailing list