projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update unaligned vs aligned ring buffer access comment
[lttng-ust.git]
/
snprintf
/
vfprintf.c
diff --git
a/snprintf/vfprintf.c
b/snprintf/vfprintf.c
index 5cb356c2beda6095cdd47113c968b5ad9bc67082..c2b07eb0bce59a2a0cf569de8a9cd6a4955a0294 100644
(file)
--- a/
snprintf/vfprintf.c
+++ b/
snprintf/vfprintf.c
@@
-35,6
+35,9
@@
#include "fvwrite.h"
#include "various.h"
#include "fvwrite.h"
#include "various.h"
+static char null_str[] = "(null)";
+static char bad_base_str[] = "bug in ust_safe_vfprintf: bad base";
+
union arg {
int intarg;
unsigned int uintarg;
union arg {
int intarg;
unsigned int uintarg;
@@
-715,7
+718,7
@@
fp_common:
goto nosign;
case 's':
if ((cp = GETARG(char *)) == NULL)
goto nosign;
case 's':
if ((cp = GETARG(char *)) == NULL)
- cp =
"(null)"
;
+ cp =
null_str
;
if (prec >= 0) {
/*
* can't use strlen; can only look for the
if (prec >= 0) {
/*
* can't use strlen; can only look for the
@@
-802,7
+805,7
@@
number: if ((dprec = prec) >= 0)
break;
default:
break;
default:
- cp =
"bug in ust_safe_vfprintf: bad base"
;
+ cp =
bad_base_str
;
size = strlen(cp);
goto skipsize;
}
size = strlen(cp);
goto skipsize;
}
This page took
0.046847 seconds
and
4
git commands to generate.