stmhal: Fix printing of pin name in error message.