projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Add powerpc64le-linux-gnu debug-info artifacts
[babeltrace.git]
/
common
/
common.c
diff --git
a/common/common.c
b/common/common.c
index 1c49a465ccfcee27ec228fa2c1862cbe8717fbe2..68f537ba0187c08f0f5bfc89fdf83df6babe8d20 100644
(file)
--- a/
common/common.c
+++ b/
common/common.c
@@
-822,7
+822,7
@@
void bt_common_normalize_star_glob_pattern(char *pattern)
goto end;
}
goto end;
}
- /*
Fall through default case.
*/
+ /*
fall-through
*/
default:
got_star = false;
break;
default:
got_star = false;
break;
@@
-1042,6
+1042,7
@@
retry:
* Fall through the default case which compares
* the escaped character now.
*/
* Fall through the default case which compares
* the escaped character now.
*/
+ /* fall-through */
default:
if (at_end_of_pattern(p, pattern, pattern_len) ||
*c != *p) {
default:
if (at_end_of_pattern(p, pattern, pattern_len) ||
*c != *p) {
@@
-1335,27
+1336,27
@@
static inline void handle_conversion_specifier_std(char *buf, char **buf_ch,
/* format (PRI*64) */
if (strncmp(fmt_ch, PRId64, sizeof(PRId64) - 1) == 0) {
/* format (PRI*64) */
if (strncmp(fmt_ch, PRId64, sizeof(PRId64) - 1) == 0) {
- fmt_ch += sizeof(PRId64);
+ fmt_ch += sizeof(PRId64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIu64, sizeof(PRIu64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIu64, sizeof(PRIu64) - 1) == 0) {
- fmt_ch += sizeof(PRIu64);
+ fmt_ch += sizeof(PRIu64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIx64, sizeof(PRIx64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIx64, sizeof(PRIx64) - 1) == 0) {
- fmt_ch += sizeof(PRIx64);
+ fmt_ch += sizeof(PRIx64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIX64, sizeof(PRIX64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIX64, sizeof(PRIX64) - 1) == 0) {
- fmt_ch += sizeof(PRIX64);
+ fmt_ch += sizeof(PRIX64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIo64, sizeof(PRIo64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIo64, sizeof(PRIo64) - 1) == 0) {
- fmt_ch += sizeof(PRIo64);
+ fmt_ch += sizeof(PRIo64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIi64, sizeof(PRIi64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIi64, sizeof(PRIi64) - 1) == 0) {
- fmt_ch += sizeof(PRIi64);
+ fmt_ch += sizeof(PRIi64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
}
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
}
@@
-1521,7
+1522,6
@@
void bt_common_custom_vsnprintf(char *buf, size_t buf_size,
BT_ASSERT(buf);
BT_ASSERT(fmt);
BT_ASSERT(buf);
BT_ASSERT(fmt);
- BT_ASSERT(*args);
while (*fmt_ch != '\0') {
switch (*fmt_ch) {
while (*fmt_ch != '\0') {
switch (*fmt_ch) {
This page took
0.025184 seconds
and
4
git commands to generate.