aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-08-07 09:32:28 +0200
committerLukas Larsson <[email protected]>2019-08-07 09:32:28 +0200
commited56842fc6f2956eec28aea93ad252f8bd9bd092 (patch)
tree00db89ac99b8f8ddcf7655fc41d94ae021b1d1a0
parent01a8b1766ddd0ae433e082923351b5319bd43183 (diff)
parentea239237d2084866a3d5c52c20b948d0f4aa735c (diff)
downloadotp-ed56842fc6f2956eec28aea93ad252f8bd9bd092.tar.gz
otp-ed56842fc6f2956eec28aea93ad252f8bd9bd092.tar.bz2
otp-ed56842fc6f2956eec28aea93ad252f8bd9bd092.zip
Merge branch 'lukas/os_mon/sscanf_Lu/OTP-15974' into maint
* lukas/os_mon/sscanf_Lu/OTP-15974: os_mon: Fix sscanf to use %llu instead of gnu specific %Lu
-rw-r--r--lib/os_mon/c_src/cpu_sup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/os_mon/c_src/cpu_sup.c b/lib/os_mon/c_src/cpu_sup.c
index c96a5c9f7c..98a2526aab 100644
--- a/lib/os_mon/c_src/cpu_sup.c
+++ b/lib/os_mon/c_src/cpu_sup.c
@@ -359,7 +359,7 @@ static cpu_t *read_procstat(FILE *fp, cpu_t *cpu) {
memset(cpu, 0, sizeof(cpu_t));
return cpu;
}
- sscanf(buffer, "cpu%u %Lu %Lu %Lu %Lu %Lu %Lu %Lu %Lu",
+ sscanf(buffer, "cpu%u %llu %llu %llu %llu %llu %llu %llu %llu",
&(cpu->id),
&(cpu->user),
&(cpu->nice_user),