[DRBD-cvs] svn commit by rasto - r2829 - trunk/user - added missing protocol in the dumps in the common secti

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Thu Apr 5 15:24:20 CEST 2007


Author: rasto
Date: 2007-04-05 15:24:19 +0200 (Thu, 05 Apr 2007)
New Revision: 2829

Modified:
   trunk/user/drbdadm_main.c
Log:
added missing protocol in the dumps in the common section


Modified: trunk/user/drbdadm_main.c
===================================================================
--- trunk/user/drbdadm_main.c	2007-04-03 20:06:19 UTC (rev 2828)
+++ trunk/user/drbdadm_main.c	2007-04-05 13:24:19 UTC (rev 2829)
@@ -340,6 +340,7 @@
 {
   if(!common) return;
   printI("common {\n"); ++indent;
+  if(common->protocol) printA("protocol",common->protocol);
   dump_options("net",common->net_options);
   dump_options("disk",common->disk_options);
   dump_options("syncer",common->sync_options);
@@ -400,7 +401,9 @@
 static void dump_common_info_xml()
 {
   if(!common) return;
-  printI("<common>\n"); ++indent;
+  printI("<common");
+  if(common->protocol) printf(" protocol=\"%s\"",common->protocol);
+  printf(">\n"); ++indent;
   dump_options_xml("net",common->net_options);
   dump_options_xml("disk",common->disk_options);
   dump_options_xml("syncer",common->sync_options);



More information about the drbd-cvs mailing list