coccinelle: standardize k_mbox_data_block_get call with timeout
Re-run with updated script to convert integer literal delay arguments to k_mbox_data_block_get to use the standard timeout macros. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
567d3c4a3e
commit
3423d8b2a4
1 changed files with 2 additions and 1 deletions
|
@ -419,7 +419,8 @@ static void tmbox_get(struct k_mbox *pmbox)
|
|||
NULL);
|
||||
|
||||
zassert_true(k_mbox_data_block_get
|
||||
(&mmsg, &mpoolrx, &rxblock, 1) == -EAGAIN, NULL);
|
||||
(&mmsg, &mpoolrx, &rxblock, K_MSEC(1)) == -EAGAIN,
|
||||
NULL);
|
||||
|
||||
/* Now dispose of the block since the test case finished */
|
||||
k_mbox_data_get(&mmsg, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue