]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
cris: sprintf optimisation
authorAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2023 02:56:46 +0000 (12:26 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2023 11:50:33 +0000 (21:20 +0930)
commit75747be51e6d11287e12c4504f2607d36a0edfd2
tree70a1c0bcca2476bf85da5733a56c4015ac8353f6
parentb43e801e28550653ecef2b7e6b15125516ab1a58
cris: sprintf optimisation

Since I was poking at cris-dis.c to avoid the sanitizer warning,
I figure I might as well make use of stpcpy and sprintf return value
in other places in this file.

* cris-dis.c (format_hex): Use sprintf return value.
(format_reg): Use stpcpy and sprintf return, avoiding strlen.
(format_sup_reg): Likewise.
opcodes/cris-dis.c