Petr Baudis wrote:Generally, the only reason for such a failure would be requesting conflicting scale and maxlen values or requesting a maxlen which would be too small to reasonably display any value, hence an empty string and a number reporting how much more is necessary to get appropriate output. In other words, a failure reports that you probably requested an irrational number for maxlen. It would probably be easier to understand if it were in terms of the numeric output rather than the entire string. If I change it that way, then there shouldn't be an "irrational" positive number to request, eliminating the need for these failures. Should I stuff this in comments in the header file, source file, or both? From a consistency standpoint, I can certainly agree. It's not hard to implement. I wanted to avoid pigeon-holeing, but to keep our reporting consistent, using '*i' for all binaries works for me. No damage. It was indicated to me that 80-ish was the preferred width, so I was trying to follow that. If that's not true in the C sources, I'll bundle things up a bit more. Per previous, sounds good to me. Overall, I was looking to create a generic function that could be used across Git without making assumptions of the consumer. Hence the maxlen, scale, SI, and space configurability. Thanks for the input, and I'll work up another draft. -- Marcus Griep GPG Key ID: 0x5E968152 —— http://www.boohaunt.net את.ψο´ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Heiko Carstens | Re: 2.6.25-rc6-git6: Reported regressions from 2.6.24 |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
| Rafael J. Wysocki | [Bug #10629] 2.6.26-rc1-$sha1: RIP __d_lookup+0x8c/0x160 |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Linus Torvalds | Re: [GIT]: Networking |
| Mark Lord | Re: [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
