]> mj.ucw.cz Git - libucw.git/blobdiff - lib/profile.c
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
[libucw.git] / lib / profile.c
index 0bd25aa9fc41cc5378a5bfa4563703c6f58b168d..83ff77c2dc7c4c9bc6a003e7c21aaa7134dcd0bb 100644 (file)
@@ -68,7 +68,7 @@ prof_tsc_init(struct prof_tsc *c)
 int
 prof_tsc_format(char *buf, struct prof_tsc *c)
 {
-  return sprintf(buf, "%Ld", c->ticks);
+  return sprintf(buf, "%lld", c->ticks);
 }
 
 #endif
@@ -103,7 +103,7 @@ prof_ktsc_switch(struct prof_ktsc *o, struct prof_ktsc *n)
   int l = pread(self_prof_fd, buf, sizeof(buf)-1, 0);
   ASSERT(l > 0 && l < (int)sizeof(buf)-1);
   buf[l] = 0;
-  l = sscanf(buf, "%Ld%Ld", &u, &s);
+  l = sscanf(buf, "%lld%lld", &u, &s);
   ASSERT(l == 2);
 
   if (n)
@@ -123,7 +123,7 @@ prof_ktsc_switch(struct prof_ktsc *o, struct prof_ktsc *n)
 int
 prof_ktsc_format(char *buf, struct prof_ktsc *c)
 {
-  return sprintf(buf, "%Ld+%Ld", (long long) c->ticks_user, (long long) c->ticks_sys);
+  return sprintf(buf, "%lld+%lld", (long long) c->ticks_user, (long long) c->ticks_sys);
 }
 
 #endif