]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
target/xtensa: Remove 'ERROR: ' prefix in error log
authorMarc Schink <dev@zapb.de>
Tue, 22 Oct 2024 15:32:37 +0000 (17:32 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 23 Nov 2024 13:52:56 +0000 (13:52 +0000)
Remove the prefix since it is redundant.

Change-Id: I9c23c0479ba40be24e471309e720060cd03763ee
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8577
Tested-by: jenkins
Reviewed-by: Ian Thompson <ianst@cadence.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/xtensa/xtensa.c

index 8369cc4e5c30d44240858ba8998863e584f8c87d..284bfc9c624ffcb97252be9333528e4f9c0fcb2f 100644 (file)
@@ -3000,13 +3000,13 @@ static int xtensa_build_reg_cache(struct target *target)
        /* Construct empty-register list for handling unknown register requests */
        xtensa->empty_regs = calloc(xtensa->dbregs_num, sizeof(struct reg));
        if (!xtensa->empty_regs) {
-               LOG_TARGET_ERROR(target, "ERROR: Out of memory");
+               LOG_TARGET_ERROR(target, "Out of memory");
                goto fail;
        }
        for (unsigned int i = 0; i < xtensa->dbregs_num; i++) {
                xtensa->empty_regs[i].name = calloc(8, sizeof(char));
                if (!xtensa->empty_regs[i].name) {
-                       LOG_TARGET_ERROR(target, "ERROR: Out of memory");
+                       LOG_TARGET_ERROR(target, "Out of memory");
                        goto fail;
                }
                sprintf((char *)xtensa->empty_regs[i].name, "?0x%04x", i & 0x0000FFFF);
@@ -3024,7 +3024,7 @@ static int xtensa_build_reg_cache(struct target *target)
        if (xtensa->regmap_contiguous && xtensa->contiguous_regs_desc) {
                xtensa->contiguous_regs_list = calloc(xtensa->total_regs_num, sizeof(struct reg *));
                if (!xtensa->contiguous_regs_list) {
-                       LOG_TARGET_ERROR(target, "ERROR: Out of memory");
+                       LOG_TARGET_ERROR(target, "Out of memory");
                        goto fail;
                }
                for (unsigned int i = 0; i < xtensa->total_regs_num; i++) {