[prof] remove wrong cast for format string (mono/mono#18477)
authorBernhard Urban-Forster <lewurm@gmail.com>
Fri, 17 Jan 2020 10:05:50 +0000 (11:05 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 17 Jan 2020 10:05:50 +0000 (11:05 +0100)
commit66742505b4d8d82d3fec337dbaa66bf63c5eebbc
tree99659f605153915faf56a2db20a846e147dd932f
parent264b2288796132b40018d32a62d67c35a042fa61
[prof] remove wrong cast for format string (mono/mono#18477)

[prof] remove wrong cast for format string

Fixes this warning:
```
  CC       mprof-report.o
mprof-report.c:408:62: warning: format specifies type 'char *' but the argument has type 'guint64' (aka 'unsigned long long') [-Wformat]
                        snprintf (format, sizeof (format), "%s : %%" PRIu64 "\n", (guint64)key_format);
                                                            ~~                    ^~~~~~~~~~~~~~~~~~~
                                                            %llu
/Applications/Xcode112.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro
      'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
```

mistake in refactoring commit https://github.com/mono/mono/commit/mono/mono@07402062541fa9555bef99dbaac84cfb587926cd#diff-c825627ea9ddb3fa753fa3617eaec7c8R408

Commit migrated from https://github.com/mono/mono/commit/73eeda130fceacebec5f1ccbae10478e7fc7c051
src/mono/mono/profiler/mprof-report.c