[profiler]Use g_warning and remove bad usage() line
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 9 Jun 2017 20:04:22 +0000 (13:04 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 9 Jun 2017 20:04:22 +0000 (13:04 -0700)
mono/profiler/arg-parsing.c
mono/profiler/mono-profiler-log.c

index 27a2bc41cb6b4df6bb5825a7b0faa7ffe3ae71c5..688e9cff03c13e30f4af2e6b6819dca1b0d7ec29 100644 (file)
@@ -304,7 +304,6 @@ usage (void)
        printf ("\t[no]calls            enable/disable recording enter/leave method events\n");
        printf ("\t[no]legacy           enable/disable pre mono 5.4 default profiler events\n");
        printf ("\tsample[=frequency]   enable/disable statistical sampling of threads (frequency in Hz, 100 by default)\n");
-       printf ("\t                     TYPE can be followed by /FREQUENCY\n");
        printf ("\theapshot[=MODE]      record heap shot info (by default at each major collection)\n");
        printf ("\t                     MODE: every XXms milliseconds, every YYgc collections, ondemand\n");
        printf ("\t[no]coverage         enable collection of code coverage data\n");
index cccbd030d6e8535ace307db3bb1dffdf04ebcabf..0e509a44c6db03be7b34117f9f4d7f052165f552 100644 (file)
@@ -4482,7 +4482,7 @@ create_profiler (const char *args, const char *filename, GPtrArray *filters)
        if (filename && *filename == '-') {
                force_delete = 1;
                filename++;
-               printf ("WARNING: the output:-FILENAME option is deprecated, the profiler now always overrides the output file\n");
+               g_warning ("WARNING: the output:-FILENAME option is deprecated, the profiler now always overrides the output file\n");
        }
        if (!filename) {
                if (do_report)