X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farmv7a_cache.c;h=e1f0dfafb0bdd4bc25c65e2ef349ffd6fd3544c5;hb=a5108240f9e12633fea400f92d96cc75e03c86ca;hp=995a85611dfed85fdc45636153370e042b02a986;hpb=7023deb06a8cac77fe50d341c9e34b80d4fc68fd;p=openocd.git diff --git a/src/target/armv7a_cache.c b/src/target/armv7a_cache.c index 995a85611d..e1f0dfafb0 100644 --- a/src/target/armv7a_cache.c +++ b/src/target/armv7a_cache.c @@ -22,7 +22,7 @@ static int armv7a_l1_d_cache_sanity_check(struct target *target) struct armv7a_common *armv7a = target_to_armv7a(target); if (target->state != TARGET_HALTED) { - LOG_ERROR("%s: target not halted", __func__); + LOG_TARGET_ERROR(target, "not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -40,7 +40,7 @@ static int armv7a_l1_i_cache_sanity_check(struct target *target) struct armv7a_common *armv7a = target_to_armv7a(target); if (target->state != TARGET_HALTED) { - LOG_ERROR("%s: target not halted", __func__); + LOG_TARGET_ERROR(target, "not halted"); return ERROR_TARGET_NOT_HALTED; }