Commit 3447153
committed
nvme-print-json: count json_show_init() and json_show_finish() calls
Add the json_init counter to create josn object exclusively.
Also change json_output_key_value() to trim key string white spaces.
Signed-off-by: Tokunori Ikegami <[email protected]>1 parent ef054b8 commit 3447153
1 file changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
4900 | 4901 | | |
4901 | 4902 | | |
4902 | 4903 | | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
| 4927 | + | |
| 4928 | + | |
| 4929 | + | |
4903 | 4930 | | |
4904 | 4931 | | |
4905 | 4932 | | |
4906 | 4933 | | |
4907 | 4934 | | |
| 4935 | + | |
4908 | 4936 | | |
4909 | 4937 | | |
4910 | 4938 | | |
4911 | 4939 | | |
4912 | | - | |
| 4940 | + | |
4913 | 4941 | | |
4914 | 4942 | | |
4915 | 4943 | | |
4916 | 4944 | | |
4917 | 4945 | | |
4918 | 4946 | | |
4919 | | - | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
4920 | 4951 | | |
4921 | 4952 | | |
4922 | 4953 | | |
4923 | 4954 | | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
4924 | 4958 | | |
4925 | 4959 | | |
4926 | 4960 | | |
| |||
0 commit comments