git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev-tunnel: use sockaddr_storage
[sliver-openvswitch.git]
/
ovsdb
/
log.c
diff --git
a/ovsdb/log.c
b/ovsdb/log.c
index
1316025
..
807b983
100644
(file)
--- a/
ovsdb/log.c
+++ b/
ovsdb/log.c
@@
-102,7
+102,7
@@
ovsdb_log_open(const char *name, enum ovsdb_log_open_mode open_mode,
flags = O_RDWR | O_CREAT | O_EXCL;
}
} else {
flags = O_RDWR | O_CREAT | O_EXCL;
}
} else {
- NOT_REACHED();
+
OVS_
NOT_REACHED();
}
fd = open(name, flags, 0666);
if (fd < 0) {
}
fd = open(name, flags, 0666);
if (fd < 0) {
@@
-356,7
+356,7
@@
ovsdb_log_write(struct ovsdb_log *file, struct json *json)
/* Compose header. */
sha1_bytes(json_string, length, sha1);
/* Compose header. */
sha1_bytes(json_string, length, sha1);
- snprintf(header, sizeof header, "%s%
zu
"SHA1_FMT"\n",
+ snprintf(header, sizeof header, "%s%
"PRIuSIZE"
"SHA1_FMT"\n",
magic, length, SHA1_ARGS(sha1));
/* Write. */
magic, length, SHA1_ARGS(sha1));
/* Write. */