From: Line Holen <Line.Holen-UdXhSnd/wVw@public.gmane.org>
To: sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] opensm/osm_helper.c Log format changes
Date: Fri, 27 Nov 2009 14:27:13 +0100 [thread overview]
Message-ID: <4B0FD3B1.1090807@Sun.COM> (raw)
Using single line when displaying DR path info in
osm_dump_dr_path() and osm_dump_smp_dr_path()
Signed-off-by: Line Holen <Line.Holen-xsfywfwIY+M@public.gmane.org>
---
diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 77ae89e..60724f2 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -1946,8 +1946,8 @@ void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path,
char buf[BUF_SIZE];
unsigned n = 0;
- n = sprintf(buf, "Directed Path Dump of %u hop path:"
- "\n\t\t\t\tPath = ", p_path->hop_count);
+ n = sprintf(buf, "Directed Path Dump of %u hop path: "
+ "Path = ", p_path->hop_count);
sprint_uint8_arr(buf + n, sizeof(buf) - n, p_path->path,
p_path->hop_count + 1);
@@ -1962,13 +1962,13 @@ void osm_dump_smp_dr_path(IN osm_log_t * p_log, IN const ib_smp_t * p_smp,
char buf[BUF_SIZE];
unsigned n;
- n = sprintf(buf, "Received SMP on a %u hop path:"
- "\n\t\t\t\tInitial path = ", p_smp->hop_count);
+ n = sprintf(buf, "Received SMP on a %u hop path: "
+ "Initial path = ", p_smp->hop_count);
n += sprint_uint8_arr(buf + n, sizeof(buf) - n,
p_smp->initial_path,
p_smp->hop_count + 1);
- n += sprintf(buf + n, "\n\t\t\t\tReturn path = ");
+ n += sprintf(buf + n, ", Return path = ");
n += sprint_uint8_arr(buf + n, sizeof(buf) - n,
p_smp->return_path, p_smp->hop_count + 1);
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-11-27 13:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 13:27 Line Holen [this message]
[not found] ` <4B0FD3B1.1090807-UdXhSnd/wVw@public.gmane.org>
2009-12-01 16:07 ` [PATCH] opensm/osm_helper.c Log format changes Sasha Khapyorsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0FD3B1.1090807@Sun.COM \
--to=line.holen-udxhsnd/wvw@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox