From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Date: Mon, 24 Mar 2025 17:39:52 +0100 Subject: [PATCH 2/6] lib: sbi: sse: Fix format string for event invalid state In-Reply-To: <20250317105426.631243-3-cleger@rivosinc.com> References: <20250317105426.631243-1-cleger@rivosinc.com> <20250317105426.631243-3-cleger@rivosinc.com> Message-ID: <20250324-1d656e6ccf6562b1980794ae@orel> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, Mar 17, 2025 at 11:54:20AM +0100, Cl?ment L?ger wrote: > Add a missing newline and modify the display value of the event id to > use hex representation. > > Signed-off-by: Cl?ment L?ger > --- > lib/sbi/sbi_sse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c > index 4722ddc4..a30fad54 100644 > --- a/lib/sbi/sbi_sse.c > +++ b/lib/sbi/sbi_sse.c > @@ -1268,7 +1268,7 @@ void sbi_sse_exit(struct sbi_scratch *scratch) > goto skip; > > if (sse_event_state(e) > SBI_SSE_STATE_REGISTERED) { > - sbi_printf("Event %d in invalid state at exit", > + sbi_printf("Event 0x%x in invalid state at exit\n", > info->event_id); > sse_event_set_state(e, SBI_SSE_STATE_UNUSED); > } > -- > 2.47.2 > I'm not sure we want the print statement, but if we do, then Reviewed-by: Andrew Jones