| От | Peter Eisentraut |
|---|---|
| Тема | proper format for printing GetLastError() |
| Дата | |
| Msg-id | 1309793345.2447.6.camel@vanquo.pezone.net обсуждение |
| Ответы |
Re: proper format for printing GetLastError()
|
| Список | pgsql-hackers |
About half of our code prints GetLastError() using %d after casting it to int (actually, about half of that half uses %i, another thing to sort out, perhaps), and the other half uses %lu without casting. I gather from online documentation that GetLastError() returns DWORD, which appears to be unsigned 32 bits. So using %lu appears to be more correct. Any arguments against standardizing on %lu? Secondly, it might also be good if we could standardize on printing actual message: error code %lu instead of just actual message: %lu Thirdly, why are we not trying to print a textual message?
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера