gpu: ion: Use %pa to print physical addresses

Using the %p format specifier for printing physical
addresses results in compilation errors when LPAE support
is enabled.

Change-Id: I93fcc75fce606fe9b4b129a46ef217f22de22418
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko
2013-03-04 19:30:50 -08:00
parent e9ba0644ce
commit a2271fc29c
+3 -3
View File
@@ -176,9 +176,9 @@ static int __ion_cp_protect_buffer(struct ion_buffer *buffer, int version,
buffer, ret_value);
atomic_dec(&buf->secure_cnt);
} else {
pr_debug("Protected buffer %p from %x-%x\n",
buffer, buf->buffer,
buf->buffer + buffer->size);
pr_debug("Protected buffer %p from %pa (size %x)\n",
buffer, &buf->buffer,
buffer->size);
buf->want_delayed_unsecure |=
flags & ION_UNSECURE_DELAYED ? 1 : 0;
buf->data = data;