Skip to content

Commit

Permalink
lib: Fix available error message in softirq
Browse files Browse the repository at this point in the history
This message should state that there are no more available Soft IRQs.

Signed-off-by: Andrew Davis <[email protected]>
  • Loading branch information
glneo authored and arnopo committed May 23, 2024
1 parent 1de0f27 commit e1a78ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ int metal_softirq_allocate(int num)
int irq_base;

if ((metal_softirq_avail + num) >= metal_softirq_num) {
metal_log(METAL_LOG_ERROR, "No %d available soft irqs.\r\n",
num);
metal_log(METAL_LOG_ERROR, "No more available soft irqs\n");
return -EINVAL;
}
irq_base = metal_softirq_avail;
Expand Down

0 comments on commit e1a78ed

Please sign in to comment.