Commit 1f58c1b4 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Quench more warnings

parent d15d2004
......@@ -458,7 +458,7 @@ panwrap_replay_attribute_meta(int job_no, int count, const struct mali_payload_v
{
char base[128];
char *prefix = varying ? "varying" : "attribute";
snprintf(base, sizeof(base), "%s_meta", prefix, job_no); /* XXX */
snprintf(base, sizeof(base), "%s_meta", prefix);
panwrap_log("struct mali_attr_meta %s_%d[] = {\n", base, job_no);
panwrap_indent++;
......
......@@ -55,7 +55,7 @@ struct panwrap_mapped_memory {
#define TOUCH_LEN(mem, addr, sz, ename, number, dyn) \
TOUCH_MEMSET(mem, addr, sz, 0) \
panwrap_log("mali_ptr %s_%d_p = pandev_upload(%d, NULL, alloc_gpu_va_%d, %s, &%s_%d, sizeof(%s_%d), false);\n\n", ename, number, dyn ? -1 : (int) ((addr - mem->gpu_va)), mem->allocation_number, mem->name, ename, number, ename, number);
panwrap_log("mali_ptr %s_%d_p = pandev_upload(%d, NULL, alloc_gpu_va_%d, %s, &%s_%d, sizeof(%s_%d), false);\n\n", ename, number, dyn ? -1 : (int) (((addr) - mem->gpu_va)), mem->allocation_number, mem->name, ename, number, ename, number);
/* Job payloads are touched somewhat different than other structures, due to the
* variable lengths and odd packing requirements */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment