[前][次][番号順一覧][スレッド一覧]

ruby-changes:32783

From: ko1 <ko1@a...>
Date: Thu, 6 Feb 2014 15:28:50 +0900 (JST)
Subject: [ruby-changes:32783] ko1:r44862 (trunk): * gc.c (get_envparam_int): correct warning messsages.

ko1	2014-02-06 15:28:40 +0900 (Thu, 06 Feb 2014)

  New Revision: 44862

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44862

  Log:
    * gc.c (get_envparam_int): correct warning messsages.
    * gc.c (get_envparam_double): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44861)
+++ ChangeLog	(revision 44862)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Feb  6 15:27:46 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c (get_envparam_int): correct warning messsages.
+
+	* gc.c (get_envparam_double): ditto.
+
 Thu Feb  6 15:17:30 2014  Koichi Sasada  <ko1@a...>
 
 	* gc.c (get_envparam_int): don't accept a value equals to lowerbound
Index: gc.c
===================================================================
--- gc.c	(revision 44861)
+++ gc.c	(revision 44862)
@@ -5654,12 +5654,12 @@ get_envparam_int(const char *name, unsig https://github.com/ruby/ruby/blob/trunk/gc.c#L5654
     if (ptr != NULL) {
 	val = atoi(ptr);
 	if (val > lower_bound) {
-	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%d (%d)\n", name, val, *default_value);
+	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%d (default value: %d)\n", name, val, *default_value);
 	    *default_value = val;
 	    return 1;
 	}
 	else {
-	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%d (%d), but ignored because lower than %d\n", name, val, *default_value, lower_bound);
+	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%d (default value: %d) is ignored because it must be greater than %d.\n", name, val, *default_value, lower_bound);
 	}
     }
     return 0;
@@ -5679,7 +5679,7 @@ get_envparam_double(const char *name, do https://github.com/ruby/ruby/blob/trunk/gc.c#L5679
 	    return 1;
 	}
 	else {
-	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%f (%f), but ignored because lower than %f\n", name, val, *default_value, lower_bound);
+	    if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%f (default value: %f) is ignored because it must be greater than %f.\n", name, val, *default_value, lower_bound);
 	}
     }
     return 0;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]