Skip to content

Commit adcd020

Browse files
committed
list-move: Tweak messages
1 parent c70fb67 commit adcd020

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

list-move/bench.c

+5-6
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ int main(void)
6666

6767
pthread_t *threads;
6868
if (!(threads = malloc(n_threads * sizeof(pthread_t)))) {
69-
printf("failed to malloc pthread_t\n");
69+
printf("Failed to allocate pthread_t\n");
7070
goto out;
7171
}
7272

7373
pthread_data_t **data;
7474
if (!(data = malloc(n_threads * sizeof(pthread_data_t *)))) {
75-
printf("failed to malloc pthread_data_t\n");
75+
printf("Failed to allocate pthread_data_t\n");
7676
goto out;
7777
}
7878
for (int i = 0; i < n_threads; i++) {
7979
if ((data[i] = alloc_pthread_data()) == NULL) {
80-
printf("failed to malloc pthread_data_t %d\n", i);
80+
printf("Failed to allocate pthread_data_t %d\n", i);
8181
goto out;
8282
}
8383
}
@@ -86,7 +86,7 @@ int main(void)
8686

8787
void *list;
8888
if (!(list = list_global_init(init_size, value_range))) {
89-
printf("failed to do list_global_init\n");
89+
printf("Failed to do list_global_init\n");
9090
goto out;
9191
}
9292

@@ -136,8 +136,7 @@ int main(void)
136136
n_move += (data[i]->n_move);
137137

138138
printf("\tduration: %d ms\n", duration);
139-
printf("\tops/second %lu (%f/s)\n", n_move,
140-
n_move * (1000.0) / duration);
139+
printf("\tops/second %f/s\n", n_move * (1000.0) / duration);
141140

142141
for (int i = 0; i < n_threads; i++)
143142
free_pthread_data(data[i]);

0 commit comments

Comments
 (0)