summaryrefslogtreecommitdiff
path: root/child.c
diff options
context:
space:
mode:
Diffstat (limited to 'child.c')
-rw-r--r--child.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/child.c b/child.c
index 56c32d1..9f2a1d9 100644
--- a/child.c
+++ b/child.c
@@ -90,7 +90,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) {
}
if( order->s_src == id ) {
- snprintf( buf, sizeof(buf), log_transfer_out_fmt,
+ snprintf( buf, sizeof(buf), log_transfer_out_fmt,
get_physical_time(), order->s_src,
order->s_amount, order->s_dst );
fputs( buf, info->events_log );
@@ -99,7 +99,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) {
info->balances[ id ] -= order->s_amount;
send( &me, order->s_dst, &msg );
} else if( order->s_dst == id ) {
- snprintf( buf, sizeof(buf), log_transfer_in_fmt,
+ snprintf( buf, sizeof(buf), log_transfer_in_fmt,
get_physical_time(), order->s_dst,
order->s_amount, order->s_src);
fputs( buf, info->events_log );
@@ -143,7 +143,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) {
.dist_info = info
};
- int size = snprintf( buf, sizeof(buf), log_done_fmt,
+ int size = snprintf( buf, sizeof(buf), log_done_fmt,
get_physical_time(), id,
info->balances[ id ] );
@@ -174,7 +174,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) {
}
}
- snprintf( buf, sizeof(buf), log_received_all_done_fmt,
+ snprintf( buf, sizeof(buf), log_received_all_done_fmt,
get_physical_time(), id );
fputs( buf, info->events_log );
fputs( buf, stdout );