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
|
@ -659,8 +659,6 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||||
__small_swprintf (cpu_num_p, L"%d", cpu_number);
|
__small_swprintf (cpu_num_p, L"%d", cpu_number);
|
||||||
if (!NT_SUCCESS (RtlCheckRegistryKey (RTL_REGISTRY_ABSOLUTE, cpu_key)))
|
if (!NT_SUCCESS (RtlCheckRegistryKey (RTL_REGISTRY_ABSOLUTE, cpu_key)))
|
||||||
break;
|
break;
|
||||||
if (cpu_number)
|
|
||||||
print ("\n");
|
|
||||||
|
|
||||||
WORD cpu_group = cpu_number / num_cpu_per_group;
|
WORD cpu_group = cpu_number / num_cpu_per_group;
|
||||||
KAFFINITY cpu_mask = 1L << (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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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…
Reference in New Issue