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
75c375e86d
commit
49b52521f3
1 changed files with 2 additions and 2 deletions
|
@ -659,8 +659,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);
|
||||
|
@ -1704,6 +1702,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…
Add table
Reference in a new issue