[PATCH v2] Fix profiler error() definition and usage
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Nov 14 10:53:57 GMT 2023
On Nov 14 00:58, Mark Geisert wrote:
> Minor updates to profiler and gmondump, which share some code:
> - fix operation of error() so it actually works as intended
> - resize 4K-size auto buffer reservations to BUFSIZ (==1K)
> - remove trailing '\n' from 2nd arg on error() calls everywhere
> - provide consistent annotation of Windows error number displays
>
> Fixes: 9887fb27f6126 ("Cygwin: New tool: profiler")
> Fixes: 087a3d76d7335 ("Cygwin: New tool: gmondump")
> Signed-off-by: Mark Geisert <mark@maxrnd.com>
>
> ---
> winsup/cygwin/release/3.4.10 | 3 +++
> winsup/utils/gmondump.c | 8 ++++---
> winsup/utils/profiler.cc | 46 +++++++++++++++++++-----------------
> 3 files changed, 32 insertions(+), 25 deletions(-)
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list