Skip to content

Commit 8afed47

Browse files
author
Chris Trowbridge
committed
Astyle fixes
1 parent b3b82a4 commit 8afed47

11 files changed

+15
-15
lines changed

TESTS/netsocket/dns/asynchronous_dns_cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ void ASYNCHRONOUS_DNS_CACHE()
6363
TEST_ASSERT_TRUE(i == 0 || delay_ms <= delay_first);
6464

6565
print_to_console("DNS: query \"%s\" => \"%s\", time %i ms\n",
66-
dns_test_hosts[0], data.addr.get_ip_address(), delay_ms);
66+
dns_test_hosts[0], data.addr.get_ip_address(), delay_ms);
6767
}
6868
}

TESTS/netsocket/dns/asynchronous_dns_cancel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void ASYNCHRONOUS_DNS_CANCEL()
7070
TEST_ASSERT(data[i].result == NSAPI_ERROR_OK || data[i].result == NSAPI_ERROR_NO_MEMORY || data[i].result == NSAPI_ERROR_BUSY || data[i].result == NSAPI_ERROR_DNS_FAILURE || data[i].result == NSAPI_ERROR_TIMEOUT);
7171
if (data[i].result == NSAPI_ERROR_OK) {
7272
print_to_console("DNS: query \"%s\" => \"%s\"\n",
73-
dns_test_hosts[i], data[i].addr.get_ip_address());
73+
dns_test_hosts[i], data[i].addr.get_ip_address());
7474
} else if (data[i].result == NSAPI_ERROR_DNS_FAILURE) {
7575
print_to_console("DNS: query \"%s\" => DNS failure\n", dns_test_hosts[i]);
7676
} else if (data[i].result == NSAPI_ERROR_TIMEOUT) {

TESTS/netsocket/dns/asynchronous_dns_non_async_and_async.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void ASYNCHRONOUS_DNS_NON_ASYNC_AND_ASYNC()
4040
SocketAddress addr;
4141
int err = get_interface()->gethostbyname(dns_test_hosts[i], &addr);
4242
print_to_console("DNS: query \"%s\" => \"%s\"\n",
43-
dns_test_hosts[i], addr.get_ip_address());
43+
dns_test_hosts[i], addr.get_ip_address());
4444

4545
TEST_ASSERT_EQUAL(0, err);
4646
TEST_ASSERT((bool)addr);
@@ -52,7 +52,7 @@ void ASYNCHRONOUS_DNS_NON_ASYNC_AND_ASYNC()
5252
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, data.result);
5353

5454
print_to_console("DNS: query \"%s\" => \"%s\"\n",
55-
dns_test_hosts_second[0], data.addr.get_ip_address());
55+
dns_test_hosts_second[0], data.addr.get_ip_address());
5656

5757
TEST_ASSERT(strlen(data.addr.get_ip_address()) > 1);
5858
}

TESTS/netsocket/dns/dns_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ NetworkInterface *get_interface();
6666
void hostbyname_cb(void *data, nsapi_error_t result, SocketAddress *address);
6767
void do_asynchronous_gethostbyname(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count, int *exp_ok, int *exp_no_mem, int *exp_dns_failure, int *exp_timeout);
6868
void do_gethostbyname(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count, int *exp_ok, int *exp_no_mem, int *exp_dns_failure, int *exp_timeout);
69-
void print_to_console(const char* fmt, ...);
69+
void print_to_console(const char *fmt, ...);
7070

7171
namespace dns_global {
7272
#ifdef MBED_GREENTEA_TEST_DNSSOCKET_TIMEOUT_S

TESTS/netsocket/dns/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const char dns_test_hosts[MBED_CONF_APP_DNS_TEST_HOSTS_NUM][DNS_TEST_HOST_LEN] =
3939
const char dns_test_hosts_second[MBED_CONF_APP_DNS_TEST_HOSTS_NUM][DNS_TEST_HOST_LEN] = MBED_CONF_APP_DNS_TEST_HOSTS_SECOND;
4040

4141
// Printing utility function
42-
void print_to_console(const char* fmt, ...)
42+
void print_to_console(const char *fmt, ...)
4343
{
4444
#if !MBED_CONF_APP_DISABLE_LOGGING
4545
va_list args;
@@ -102,7 +102,7 @@ void do_asynchronous_gethostbyname(const char hosts[][DNS_TEST_HOST_LEN], unsign
102102
if (data[i].result == NSAPI_ERROR_OK) {
103103
(*exp_ok)++;
104104
print_to_console("DNS: query \"%s\" => \"%s\"\n",
105-
hosts[i], data[i].addr.get_ip_address());
105+
hosts[i], data[i].addr.get_ip_address());
106106
} else if (data[i].result == NSAPI_ERROR_DNS_FAILURE) {
107107
(*exp_dns_failure)++;
108108
print_to_console("DNS: query \"%s\" => DNS failure\n", hosts[i]);
@@ -139,7 +139,7 @@ void do_gethostbyname(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_cou
139139
if (err == NSAPI_ERROR_OK) {
140140
(*exp_ok)++;
141141
print_to_console("DNS: query \"%s\" => \"%s\"\n",
142-
hosts[i], address.get_ip_address());
142+
hosts[i], address.get_ip_address());
143143
} else if (err == NSAPI_ERROR_DNS_FAILURE) {
144144
(*exp_dns_failure)++;
145145
print_to_console("DNS: query \"%s\" => DNS failure\n", hosts[i]);

TESTS/netsocket/dns/synchronous_dns_cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ void SYNCHRONOUS_DNS_CACHE()
5151
TEST_ASSERT_TRUE(i == 0 || delay_ms <= delay_first);
5252

5353
print_to_console("DNS: query \"%s\" => \"%s\", time %i ms\n",
54-
dns_test_hosts[0], address.get_ip_address(), delay_ms);
54+
dns_test_hosts[0], address.get_ip_address(), delay_ms);
5555
}
5656
}

TESTS/netsocket/tcp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Timer tc_bucket; // Timer to limit a test cases run time
3939
}
4040

4141
// Printing utility function
42-
void print_to_console(const char* fmt, ...)
42+
void print_to_console(const char *fmt, ...)
4343
{
4444
#if !MBED_CONF_APP_DISABLE_LOGGING
4545
va_list args;

TESTS/netsocket/tcp/tcp_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len);
2727
nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock);
2828
nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock);
2929
bool is_tcp_supported();
30-
void print_to_console(const char* fmt, ...);
30+
void print_to_console(const char *fmt, ...);
3131

3232
#define SKIP_IF_TCP_UNSUPPORTED() \
3333
if (!is_tcp_supported()) { \

TESTS/netsocket/udp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Timer tc_bucket; // Timer to limit a test cases run time
3939
}
4040

4141
// Printing utility function
42-
void print_to_console(const char* fmt, ...)
42+
void print_to_console(const char *fmt, ...)
4343
{
4444
#if !MBED_CONF_APP_DISABLE_LOGGING
4545
va_list args;

TESTS/netsocket/udp/udp_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void drop_bad_packets(UDPSocket &sock, int orig_timeout);
2525
nsapi_version_t get_ip_version();
2626
bool check_oversized_packets(nsapi_error_t error, int &size);
2727
void fill_tx_buffer_ascii(char *buff, size_t len);
28-
void print_to_console(const char* fmt, ...);
28+
void print_to_console(const char *fmt, ...);
2929

3030
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3131
extern mbed_stats_socket_t udp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];

TESTS/netsocket/udp/udpsocket_echotest_burst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void UDPSOCKET_ECHOTEST_BURST()
142142

143143
double loss_ratio = 1 - ((double)(BURST_CNT * BURST_PKTS - pkg_fail) / (double)(BURST_CNT * BURST_PKTS));
144144
print_to_console("Packets sent: %d, packets received %d, loss ratio %.2lf\r\n",
145-
BURST_CNT * BURST_PKTS, BURST_CNT * BURST_PKTS - pkg_fail, loss_ratio);
145+
BURST_CNT * BURST_PKTS, BURST_CNT * BURST_PKTS - pkg_fail, loss_ratio);
146146
// Packet loss up to 30% tolerated
147147
TEST_ASSERT_DOUBLE_WITHIN(TOLERATED_LOSS_RATIO, EXPECTED_LOSS_RATIO, loss_ratio);
148148
// 70% of the bursts need to be successful
@@ -225,7 +225,7 @@ void UDPSOCKET_ECHOTEST_BURST_NONBLOCK()
225225

226226
double loss_ratio = 1 - ((double)(BURST_CNT * BURST_PKTS - pkg_fail) / (double)(BURST_CNT * BURST_PKTS));
227227
print_to_console("Packets sent: %d, packets received %d, loss ratio %.2lf\r\n",
228-
BURST_CNT * BURST_PKTS, BURST_CNT * BURST_PKTS - pkg_fail, loss_ratio);
228+
BURST_CNT * BURST_PKTS, BURST_CNT * BURST_PKTS - pkg_fail, loss_ratio);
229229
// Packet loss up to 30% tolerated
230230
TEST_ASSERT_DOUBLE_WITHIN(TOLERATED_LOSS_RATIO, EXPECTED_LOSS_RATIO, loss_ratio);
231231
// 70% of the bursts need to be successful

0 commit comments

Comments
 (0)