[sheepdog] [PATCH v2 01/14] remove wrong comments about early_log_init

MORITA Kazutaka morita.kazutaka at gmail.com
Mon Aug 12 02:11:41 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

We can call our print functions before early_log_init() since
default_log_formatter is enabled by default.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/sheep.c       |    4 ----
 shepherd/shepherd.c |    4 ----
 2 files changed, 8 deletions(-)

diff --git a/sheep/sheep.c b/sheep/sheep.c
index a3f572e..461a729 100644
--- a/sheep/sheep.c
+++ b/sheep/sheep.c
@@ -717,10 +717,6 @@ int main(int argc, char **argv)
 		}
 	}
 
-	/*
-	 * early_log_init() must be called before any calling of
-	 * sd_printf() series
-	 */
 	sheep_info.port = port;
 	early_log_init(log_format, &sheep_info);
 
diff --git a/shepherd/shepherd.c b/shepherd/shepherd.c
index 27ab4a8..77c09fb 100644
--- a/shepherd/shepherd.c
+++ b/shepherd/shepherd.c
@@ -725,10 +725,6 @@ int main(int argc, char **argv)
 		}
 	}
 
-	/*
-	 * early_log_init() must be called before any calling of
-	 * sd_printf() series
-	 */
 	shepherd_info.port = port;
 	early_log_init(log_format, &shepherd_info);
 
-- 
1.7.9.5




More information about the sheepdog mailing list