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-04-19 13:08:58 -07:00
2012-05-25 09:59:58 -07:00
2012-07-23 14:15:47 -07:00
2012-07-19 11:35:21 -07:00
2012-05-25 09:59:58 -07:00
2012-04-19 11:08:28 -07:00
2012-04-19 11:08:28 -07:00
2012-05-14 16:07:17 -07:00
2012-04-24 09:59:31 -07:00
2012-06-29 10:22:49 -07:00
2012-07-12 18:22:24 -07:00
2012-07-24 17:38:10 -07:00
2011-12-07 19:10:02 +00:00
2012-07-10 14:56:05 -07:00
2012-07-23 23:30:33 -07:00
2012-02-15 16:34:54 -08:00
2012-07-02 22:35:52 -07:00
2012-07-24 22:32:03 -07:00
2012-07-26 16:25:34 -07:00
2012-07-02 22:35:51 -07:00
2012-06-29 10:46:22 -07:00
2012-05-31 15:03:17 -07:00
2012-01-11 11:37:55 -08:00
2012-06-26 17:01:52 -07:00
2012-06-07 09:59:55 -07:00
2012-04-26 13:57:19 -07:00
2012-05-08 12:03:49 -07:00
2012-07-12 18:22:24 -07:00
2011-12-07 19:10:02 +00:00
2012-04-19 13:08:58 -07:00
2012-06-22 11:12:40 -07:00
2012-04-19 13:08:58 -07:00
2012-07-29 22:35:45 -07:00
2012-04-19 11:08:28 -07:00
2012-07-18 15:51:36 -07:00
2012-07-02 15:26:02 -07:00
2011-12-07 19:10:02 +00:00
2012-07-30 13:41:33 -07:00
2012-06-22 15:56:57 -07:00
2012-06-07 20:48:51 -07:00
2011-12-07 19:10:02 +00:00
2012-06-27 03:22:17 -07:00
2012-06-27 03:22:17 -07:00
2012-05-30 13:12:34 -07:00
2012-07-24 15:55:31 -07:00
2012-04-06 09:06:53 -07:00
2012-05-29 09:38:58 -07:00
2012-06-22 11:12:43 -07:00
2012-04-05 11:30:16 +08:00
2012-06-28 17:06:46 -07:00
2012-05-28 16:42:17 +08:00
2012-06-07 00:54:02 -07:00
2012-05-09 16:09:10 -07:00
2012-07-23 23:30:33 -07:00
2012-07-16 17:49:10 -07:00
2012-06-28 17:40:39 -07:00
2012-06-15 13:39:22 -07:00
2012-04-24 17:46:54 -07:00