Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: tests/libc/memcpy_move_set.c

Issue 1148953002: Cast pointers used with %p format strings to void * (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: use C-style everywhere Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/dynamic_code_loading/dyncode_demand_alloc_test.c ('k') | tests/libc/posix_memalign.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/libc/memcpy_move_set.c
diff --git a/tests/libc/memcpy_move_set.c b/tests/libc/memcpy_move_set.c
index b526c72fbeae51ceb3537a4c42a7ed0bc66bccc4..e0764ddbeaa9b2be03fc120f4e5aaf0cfa695c7c 100644
--- a/tests/libc/memcpy_move_set.c
+++ b/tests/libc/memcpy_move_set.c
@@ -44,7 +44,7 @@ void reset_buf(void) {
void dump_buf(void) {
unsigned char *bufptr = (unsigned char *) buf;
for (int i = 0; i < total_buf_len; ++i)
- printf("buf[%u] (%p) = %u\n", i, &bufptr[i], bufptr[0]);
+ printf("buf[%u] (%p) = %u\n", i, (void *) &bufptr[i], bufptr[0]);
}
/*
@@ -85,7 +85,8 @@ void checked_memset(void *s, int c, unsigned n) {
char *dst_char = s_char;
for (unsigned i = 0; i < n; ++i, ++dst_char) {
if (*dst_char != c) {
- printf("memset failure: index %d (%p) = %u\n", i, dst_char, *dst_char);
+ printf("memset failure: index %d (%p) = %u\n",
+ i, (void *) dst_char, *dst_char);
dump_buf();
exit(1);
}
« no previous file with comments | « tests/dynamic_code_loading/dyncode_demand_alloc_test.c ('k') | tests/libc/posix_memalign.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698