Re: using __func__ to locate and distinguish some error messages

2024-06-07 Thread jian he
On Fri, Jun 7, 2024 at 4:28 PM Alvaro Herrera wrote: > > On 2024-Jun-07, jian he wrote: > > > so when it actually happens, it cannot quickly locate which function > > where the error has happened. > > maybe under certain conditions (e.g. certain build type or certain > > log_min_messages), > > we

Re: using __func__ to locate and distinguish some error messages

2024-06-07 Thread Alvaro Herrera
On 2024-Jun-07, jian he wrote: > so when it actually happens, it cannot quickly locate which function > where the error has happened. > maybe under certain conditions (e.g. certain build type or certain > log_min_messages), > we can also print out the function name by using gcc __func__. That inf