updated most things to work on Wheezy
I haven't done the new opencv packages yet, so I just didn't test
compiling that stuff.
Almost all of the changes were related to user-defined string literals
breaking things like "%"PRIu32" (in our code and other people's).
diff --git a/aos/atom_code/ipc_lib/mutex.cpp b/aos/atom_code/ipc_lib/mutex.cpp
index 6bf5df5..4f908dd 100644
--- a/aos/atom_code/ipc_lib/mutex.cpp
+++ b/aos/atom_code/ipc_lib/mutex.cpp
@@ -20,14 +20,14 @@
void Mutex::Lock() {
if (mutex_grab(&impl_) != 0) {
- LOG(FATAL, "mutex_grab(%p(=%"PRIu32")) failed because of %d: %s\n",
+ LOG(FATAL, "mutex_grab(%p(=%" PRIu32 ")) failed because of %d: %s\n",
&impl_, impl_, errno, strerror(errno));
}
}
void Mutex::Unlock() {
if (mutex_unlock(&impl_) != 0) {
- LOG(FATAL, "mutex_unlock(%p(=%"PRIu32")) failed because of %d: %s\n",
+ LOG(FATAL, "mutex_unlock(%p(=%" PRIu32 ")) failed because of %d: %s\n",
&impl_, impl_, errno, strerror(errno));
}
}
diff --git a/aos/atom_code/ipc_lib/queue_test.cpp b/aos/atom_code/ipc_lib/queue_test.cpp
index 6fb6eca..e9ac8d5 100644
--- a/aos/atom_code/ipc_lib/queue_test.cpp
+++ b/aos/atom_code/ipc_lib/queue_test.cpp
@@ -258,13 +258,14 @@
aos_queue_read_msg(args->queue, args->flags));
if (msg == NULL) {
if (args->data != -1) {
- snprintf(failure, kFailureSize, "expected data of %"PRId16" but got NULL message",
+ snprintf(failure, kFailureSize,
+ "expected data of %" PRId16 " but got NULL message",
args->data);
}
} else {
if (args->data != msg->data) {
snprintf(failure, kFailureSize,
- "expected data of %"PRId16" but got %"PRId16" instead",
+ "expected data of %" PRId16 " but got %" PRId16 " instead",
args->data, msg->data);
}
aos_queue_free_msg(args->queue, msg);