一同事突然问到的问题:
printf("watchdog fork(): %m\n");
之前也没见过, 在网上搜了下, 原来%m是strerror(errno)的替代, 原文如下:
GNU glibc provides an extension to printf, %m, which outputs
strerror(errno). It's a bit superfluous in my opinion, but some
projects make heavy use of it. Would newlib accept a patch to add this
feature?
Cheers,
Shaun
原文链接:
阅读(2462) | 评论(0) | 转发(2) |