diff --git a/tests/gnrc_netif/main.c b/tests/gnrc_netif/main.c index 2b55d1bac8..7d04dc6311 100644 --- a/tests/gnrc_netif/main.c +++ b/tests/gnrc_netif/main.c @@ -1131,7 +1131,7 @@ static void test_netif_get_name(void) TEST_ASSERT_NOT_NULL(netif); res = netif_get_name(netif, name); - sprintf(exp_name, "if%d", (int) ((gnrc_netif_t *)netif)->pid); + sprintf(exp_name, "%d", (int) ((gnrc_netif_t *)netif)->pid); TEST_ASSERT_EQUAL_INT(strlen(exp_name), res); TEST_ASSERT_EQUAL_STRING(&exp_name[0], &name[0]); }