diff options
author | Daniel Mack <github@zonque.org> | 2015-09-30 16:35:49 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-30 16:35:49 +0200 |
commit | a19c7a4a4b773e25671a5fa874e7c421685d1bde (patch) | |
tree | 3b7e20eb79359b4f3579870beb279df35ae207cd /src/basic/virt.c | |
parent | 6e8337580862037d0639961cb51ef82270c1a30f (diff) | |
parent | f2d28e80bc6260c90396e9fc798d559775dbde23 (diff) |
Merge pull request #1415 from aakoskin/bootchart-v2
[v2] bootchart: don't fail if "model name" is missing from cpuinfo
Diffstat (limited to 'src/basic/virt.c')
-rw-r--r-- | src/basic/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/virt.c b/src/basic/virt.c index 1fc6c1baba..70543177b6 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -240,7 +240,7 @@ static int detect_vm_zvm(void) { _cleanup_free_ char *t = NULL; int r; - r = get_status_field("/proc/sysinfo", "VM00 Control Program:", &t); + r = get_proc_field("/proc/sysinfo", "VM00 Control Program", WHITESPACE, &t); if (r == -ENOENT) return VIRTUALIZATION_NONE; if (r < 0) |