[asterisk-commits] jpeeler: branch 1.6.2 r236899 - in /branches/1.6.2: ./ main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 30 15:06:19 CST 2009


Author: jpeeler
Date: Wed Dec 30 15:06:17 2009
New Revision: 236899

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236899
Log:
Merged revisions 236893 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r236893 | jpeeler | 2009-12-30 14:34:41 -0600 (Wed, 30 Dec 2009) | 11 lines
  
  Fix compiling with LOW_MEMORY.
  
  Modified handle_verbose to be LOW_MEMORY aware.
  
  (closes issue #16381)
  Reported by: michael_iedema
  Patches: 
        ast_complete_source_filename.patch uploaded by michael iedema (license 942)
        modified by me
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/cli.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/cli.c?view=diff&rev=236899&r1=236898&r2=236899
==============================================================================
--- branches/1.6.2/main/cli.c (original)
+++ branches/1.6.2/main/cli.c Wed Dec 30 15:06:17 2009
@@ -377,10 +377,18 @@
 	case CLI_INIT:
 		e->command = "core set {debug|verbose}";
 		e->usage =
+#if !defined(LOW_MEMORY)
 			"Usage: core set {debug|verbose} [atleast] <level> [filename]\n"
+#else
+			"Usage: core set {debug|verbose} [atleast] <level>\n"
+#endif
 			"       core set {debug|verbose} off\n"
+#if !defined(LOW_MEMORY)
 			"       Sets level of debug or verbose messages to be displayed or \n"
 			"       sets a filename to display debug messages from.\n"
+#else
+			"       Sets level of debug or verbose messages to be displayed.\n"
+#endif
 			"	0 or off means no messages should be displayed.\n"
 			"	Equivalent to -d[d[...]] or -v[v[v...]] on startup\n";
 		return NULL;
@@ -406,8 +414,10 @@
 			} else if (a->n == (22 - numbermatch) && a->pos == 3 && ast_strlen_zero(argv3)) {
 				return ast_strdup("atleast");
 			}
+#if !defined(LOW_MEMORY)
 		} else if (a->pos == 4 || (a->pos == 5 && !strcasecmp(argv3, "atleast"))) {
 			return ast_complete_source_filename(a->pos == 4 ? S_OR(a->argv[4], "") : S_OR(a->argv[5], ""), a->n);
+#endif
 		}
 		return NULL;
 	}




More information about the asterisk-commits mailing list