commit | 6828a30253e55983b887dcd8f947a4d771aff82b | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Tue Jun 15 00:41:22 2021 -0400 |
committer | Mike Frysinger <vapier@gentoo.org> | Wed Jun 16 01:55:31 2021 -0400 |
tree | 0babfc0996ef0012f3fa30da3afe71add3580146 | |
parent | df32b446c3f54ed1cc9d4435740bffb42993090c [diff] |
sim: mips: rework dynamic printf logic to avoid compiler warnings The compiler doesn't like passing non-constant strings to printf functions, so tweak the code to always pass one in. This code is a little more verbose, but it's probably the same performance. The macro usage is a bit ugly, but maybe less than copying & pasting the extended conditional format logic.