mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 04:00:17 +01:00
utils: fix printf format for pid_t in nm_utils_get_start_time_for_pid()
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
ace746df4e
commit
caa1779f33
1 changed files with 3 additions and 1 deletions
|
|
@ -199,7 +199,9 @@ nm_utils_get_start_time_for_pid (pid_t pid)
|
|||
start_time = 0;
|
||||
contents = NULL;
|
||||
|
||||
filename = g_strdup_printf ("/proc/%d/stat", pid);
|
||||
g_return_val_if_fail (pid > 0, 0);
|
||||
|
||||
filename = g_strdup_printf ("/proc/%"G_GUINT64_FORMAT"/stat", (guint64) pid);
|
||||
|
||||
if (!g_file_get_contents (filename, &contents, &length, NULL))
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue