mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 04:20:28 +08:00
Cygwin: /proc/cpuinfo: always print trailing empty line, as on Linux
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7c870ee90f
commit
39db1a7f42
@ -660,8 +660,6 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||
__small_swprintf (cpu_num_p, L"%d", cpu_number);
|
||||
if (!NT_SUCCESS (RtlCheckRegistryKey (RTL_REGISTRY_ABSOLUTE, cpu_key)))
|
||||
break;
|
||||
if (cpu_number)
|
||||
print ("\n");
|
||||
|
||||
WORD cpu_group = cpu_number / num_cpu_per_group;
|
||||
KAFFINITY cpu_mask = 1L << (cpu_number % num_cpu_per_group);
|
||||
@ -1701,6 +1699,8 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||
print ("\n");
|
||||
}
|
||||
|
||||
print ("\n");
|
||||
|
||||
destbuf = (char *) crealloc_abort (destbuf, bufptr - buf);
|
||||
memcpy (destbuf, buf, bufptr - buf);
|
||||
return bufptr - buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user