diff options
Diffstat (limited to 'adf')
-rw-r--r-- | adf/libadf/adf.c | 2 | ||||
-rw-r--r-- | adf/libadfhwc/adfhwc.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/adf/libadf/adf.c b/adf/libadf/adf.c index 871629e..1d19152 100644 --- a/adf/libadf/adf.c +++ b/adf/libadf/adf.c @@ -768,7 +768,7 @@ int adf_find_simple_post_configuration(struct adf_device *dev, const __u32 *formats, size_t n_formats, adf_id_t *interface, adf_id_t *overlay_engine) { - adf_id_t *intfs; + adf_id_t *intfs = NULL; ssize_t n_intfs = adf_interfaces(dev, &intfs); if (n_intfs < 0) diff --git a/adf/libadfhwc/adfhwc.cpp b/adf/libadfhwc/adfhwc.cpp index dee3cae..57e09eb 100644 --- a/adf/libadfhwc/adfhwc.cpp +++ b/adf/libadfhwc/adfhwc.cpp @@ -257,7 +257,7 @@ int adf_hwc_open(int *intf_fds, size_t n_intfs, ret = adf_set_event(dup_intf_fd, ADF_EVENT_HOTPLUG, 1); if (ret < 0 && ret != -EINVAL) { - ALOGE("failed to enable hotplug event on display %u: %s", + ALOGE("failed to enable hotplug event on display %zu: %s", i, strerror(errno)); goto err; } |