mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-27 19:17:18 +08:00
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>
This commit is contained in:
parent
003d85107b
commit
a430ffd165
@ -1752,16 +1752,17 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
|||||||
ftcprint (features1, 12, "acc_power"); /* core power reporting */
|
ftcprint (features1, 12, "acc_power"); /* core power reporting */
|
||||||
/* ftcprint (features1, 13, "connstby"); */ /* connected standby */
|
/* ftcprint (features1, 13, "connstby"); */ /* connected standby */
|
||||||
/* ftcprint (features1, 14, "rapl"); */ /* running average power limit */
|
/* ftcprint (features1, 14, "rapl"); */ /* running average power limit */
|
||||||
|
|
||||||
|
print ("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print ("\n");
|
||||||
|
|
||||||
if (orig_affinity_mask != 0)
|
if (orig_affinity_mask != 0)
|
||||||
SetThreadGroupAffinity (GetCurrentThread (), &orig_group_affinity,
|
SetThreadGroupAffinity (GetCurrentThread (), &orig_group_affinity,
|
||||||
NULL);
|
NULL);
|
||||||
print ("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print ("\n");
|
|
||||||
|
|
||||||
destbuf = (char *) crealloc_abort (destbuf, bufptr - buf);
|
destbuf = (char *) crealloc_abort (destbuf, bufptr - buf);
|
||||||
memcpy (destbuf, buf, bufptr - buf);
|
memcpy (destbuf, buf, bufptr - buf);
|
||||||
return bufptr - buf;
|
return bufptr - buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user