Changeset 41340 for trunk/Ohana/src/opihi/cmd.basic/memory.c
- Timestamp:
- Apr 16, 2020, 1:54:47 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/memory.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/memory.c
r41160 r41340 5 5 6 6 if (argc < 2) goto usage; 7 8 if (!strcasecmp (argv[1], "max-lines")) {9 if (argc != 3) goto usage;10 int MaxLines = atoi(argv[2]);11 ohana_memdump_set_maxlines (MaxLines);12 return TRUE;13 }14 7 15 8 if (!strcasecmp (argv[1], "all")) { … … 50 43 } 51 44 52 if (!strncasecmp ("strings", argv[1], strlen(argv[1]))) {53 ohana_memdump_strings_file (stderr, FALSE);54 return (TRUE);55 }56 57 45 usage: 58 gprint (GP_ERR, "USAGE: memory (mode) [-max-lines]\n"); 59 gprint (GP_ERR, "USAGE: memory (max-lines) (N)\n"); 60 gprint (GP_ERR, " mode options: all, leaks, check, checkfree, variables, vectors, buffers, macros, commands, strings\n"); 46 gprint (GP_ERR, "USAGE: memory (all/leaks)\n"); 61 47 return (FALSE); 62 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
