@@ -43,9 +43,8 @@ void tst_checkpoint_init(const char *file, const int lineno,
43
43
unsigned int page_size ;
44
44
45
45
if (tst_futexes ) {
46
- tst_brkm (TBROK , cleanup_fn ,
47
- "%s: %d checkpoints already initialized" ,
48
- file , lineno );
46
+ tst_brkm_ (file , lineno , TBROK , cleanup_fn ,
47
+ "checkpoints already initialized" );
49
48
return ;
50
49
}
51
50
@@ -61,9 +60,9 @@ void tst_checkpoint_init(const char *file, const int lineno,
61
60
* the init as a first function with NULL as cleanup function.
62
61
*/
63
62
if (cleanup_fn && !tst_tmpdir_created ()) {
64
- tst_brkm ( TBROK , cleanup_fn ,
65
- "%s:%d You have to create test temporary directory "
66
- "first (call tst_tmpdir())" , file , lineno );
63
+ tst_brkm_ ( file , lineno , TBROK , cleanup_fn ,
64
+ " You have to create test temporary directory "
65
+ "first (call tst_tmpdir())" );
67
66
return ;
68
67
}
69
68
@@ -144,9 +143,9 @@ void tst_safe_checkpoint_wait(const char *file, const int lineno,
144
143
ret = tst_checkpoint_wait (id , msec_timeout );
145
144
146
145
if (ret ) {
147
- tst_brkm ( TBROK | TERRNO , cleanup_fn ,
148
- "%s:%d: tst_checkpoint_wait(%u, %i)" ,
149
- file , lineno , id , msec_timeout );
146
+ tst_brkm_ ( file , lineno , TBROK | TERRNO , cleanup_fn ,
147
+ " tst_checkpoint_wait(%u, %i) failed" , id ,
148
+ msec_timeout );
150
149
}
151
150
}
152
151
@@ -157,8 +156,8 @@ void tst_safe_checkpoint_wake(const char *file, const int lineno,
157
156
int ret = tst_checkpoint_wake (id , nr_wake , DEFAULT_MSEC_TIMEOUT );
158
157
159
158
if (ret ) {
160
- tst_brkm ( TBROK | TERRNO , cleanup_fn ,
161
- "%s:%d: tst_checkpoint_wake(%u, %u, %i)" ,
162
- file , lineno , id , nr_wake , DEFAULT_MSEC_TIMEOUT );
159
+ tst_brkm_ ( file , lineno , TBROK | TERRNO , cleanup_fn ,
160
+ " tst_checkpoint_wake(%u, %u, %i) failed" , id , nr_wake ,
161
+ DEFAULT_MSEC_TIMEOUT );
163
162
}
164
163
}
0 commit comments