diff options
author | Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> | 2024-07-18 10:27:49 -0600 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2024-07-19 11:52:09 +0200 |
commit | a430ffd1650baa6b4682517cff514371b4a19ba7 (patch) | |
tree | 124025cee3713ff2489efbadd7fb9f068e5192e0 /winsup/cygwin | |
parent | 003d85107bab603feb9b560327e12a833222fc19 (diff) | |
download | newlib-a430ffd1650baa6b4682517cff514371b4a19ba7.zip newlib-a430ffd1650baa6b4682517cff514371b4a19ba7.tar.gz newlib-a430ffd1650baa6b4682517cff514371b4a19ba7.tar.bz2 |
Cygwin: fhandler/proc.cc(format_proc_cpuinfo): add newlines
Linux cpuinfo follows output for each processor with a blank line,
so we output newlines to get a blank line:
- newline after power management feature flags if printed;
- newline to give blank line after each processor output.
Reported-by: Achim Gratz https://cygwin.com/pipermail/cygwin/2024-July/256223.html
Signed-off-by: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/fhandler/proc.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc index d8ab522..e85ed4f 100644 --- a/winsup/cygwin/fhandler/proc.cc +++ b/winsup/cygwin/fhandler/proc.cc @@ -1752,16 +1752,17 @@ format_proc_cpuinfo (void *, char *&destbuf) ftcprint (features1, 12, "acc_power"); /* core power reporting */ /* ftcprint (features1, 13, "connstby"); */ /* connected standby */ /* ftcprint (features1, 14, "rapl"); */ /* running average power limit */ + + print ("\n"); } + print ("\n"); + if (orig_affinity_mask != 0) SetThreadGroupAffinity (GetCurrentThread (), &orig_group_affinity, NULL); - print ("\n"); } - print ("\n"); - destbuf = (char *) crealloc_abort (destbuf, bufptr - buf); memcpy (destbuf, buf, bufptr - buf); return bufptr - buf; |