summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b24191)
raw | patch | inline | side by side (parent: 9b24191)
author | Vincent Brillault <git@lerya.net> | |
Thu, 16 Apr 2015 19:33:02 +0000 (21:33 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Thu, 16 Apr 2015 19:33:02 +0000 (21:33 +0200) |
Found while compiling with clang and -Wshorten-64-to-32 enabled
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index 76b65cb64b1efed2e8fcf9afacd9daedef454ae3..1898db1e344b4327eac7b3017be2fb5436c342e2 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
* Open a MSR device for reading, read the value asked for and close it.
* This call will not affect the scheduling affinity of this thread.
*/
-static int __attribute__((warn_unused_result))
+static ssize_t __attribute__((warn_unused_result))
get_msr(unsigned int cpu, off_t offset, unsigned long long *msr)
{
ssize_t retval;