Skip to contentSkip to conversation

opensm/osm_helper.c Log format changes

PATCH Applied Line Holen 2 participants 2 messages Nov 27, 2009 – Dec 1, 2009 1 message not in the archive InfiniBand

lore
Share & tools
lore

Line Holen

author
#0 lore raw

PATCH 1/1 opensm/osm_helper.c Log format changes

Using single line when displaying DR path info in
osm_dump_dr_path() and osm_dump_smp_dr_path()

---

opensm/opensm/osm_helper.c +5 -5
index 77ae89e..60724f2 100644
@@ -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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html