Randall Spangler
7d06db201f
Enhance printf()
1. Add precision to limit string length.
ccprintf("%.4s", "foobar") prints "foob"
2. Handle '*' for length, precision fields.
ccprintf("%.*s", 3, "foobar") prints "foo"
3. Add hex-dump code "%h"
ccprintf("%.*s", 4, "foobar") prints 666f6f62
BUG=none
TEST=at ec console, 'hash' prints the current hash
Change-Id: I568310f2727495b021081bf58df2a0bbb3c74e73
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/28704
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2012-07-30 13:41:33 -07:00
..
2012-07-12 02:09:45 -07:00
2012-07-23 14:15:47 -07:00
2012-07-18 13:48:56 -07:00
2012-07-26 16:25:34 -07:00
2012-05-25 13:34:06 -07:00
2012-07-12 18:22:24 -07:00
2012-06-13 13:17:33 -07:00
2012-07-10 14:56:05 -07:00
2012-07-17 13:11:44 -07:00
2012-07-17 13:11:44 -07:00
2012-07-26 18:28:14 -07:00
2012-07-25 21:52:04 -07:00
2012-07-26 18:51:46 -07:00
2012-07-26 16:25:34 -07:00
2012-05-21 16:30:12 -07:00
2012-07-26 16:25:34 -07:00
2012-07-26 16:25:34 -07:00
2012-07-26 16:25:34 -07:00
2012-06-07 20:48:51 -07:00
2012-07-18 12:06:54 -07:00
2012-07-26 16:25:34 -07:00
2012-07-26 16:25:34 -07:00
2012-07-16 17:49:10 -07:00
2012-05-25 13:34:06 -07:00
2012-07-08 20:25:17 -07:00
2012-06-27 00:55:04 -07:00
2012-07-08 20:25:17 -07:00
2012-06-25 07:15:50 -07:00
2012-07-08 20:25:17 -07:00
2012-07-13 13:06:16 -07:00
2012-07-29 22:35:45 -07:00
2012-06-18 11:48:15 -07:00
2012-05-25 13:34:06 -07:00
2012-07-30 13:41:33 -07:00
2012-07-26 16:25:34 -07:00
2012-07-26 16:25:34 -07:00
2012-06-07 20:48:51 -07:00
2012-04-19 18:15:18 -07:00
2012-06-27 03:22:17 -07:00
2012-07-02 22:35:51 -07:00
2012-07-26 16:25:34 -07:00
2012-07-26 16:25:34 -07:00
2012-07-22 13:17:02 -07:00
2012-07-26 16:25:34 -07:00
2012-07-19 20:41:53 -07:00
2012-05-28 16:42:17 +08:00
2012-07-23 11:03:33 -07:00
2012-07-26 16:25:34 -07:00
2012-05-25 13:34:06 -07:00
2012-07-23 23:30:33 -07:00
2012-07-30 13:41:33 -07:00
2012-07-17 14:40:59 -07:00
2012-05-10 17:27:36 -07:00
2012-07-26 16:25:34 -07:00
2012-03-02 16:46:26 +00:00
2012-07-26 16:25:34 -07:00