1f08c3bdfSopenharmony_ci@@
2f08c3bdfSopenharmony_ciexpression cgn, cgns;
3f08c3bdfSopenharmony_ci@@
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ci- cgn = cg_name(..., cgns);
6f08c3bdfSopenharmony_ci+ cgn = tst_cg_group_mk(cg_test, cgns);
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ci@@
9f08c3bdfSopenharmony_ciexpression cg, fname, data;
10f08c3bdfSopenharmony_ci@@
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ci- if (cg_write(cg, fname, data)) {
13f08c3bdfSopenharmony_ci-    ...
14f08c3bdfSopenharmony_ci- }
15f08c3bdfSopenharmony_ci+ SAFE_CG_PRINT(cg, fname, data);
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_ci@@
18f08c3bdfSopenharmony_ciexpression cg;
19f08c3bdfSopenharmony_ci@@
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci... when != TST_CG_VER(...)
22f08c3bdfSopenharmony_ci
23f08c3bdfSopenharmony_ci- SAFE_CG_PRINT(cg, "cgroup.subtree_control", "+memory");
24f08c3bdfSopenharmony_ci+ if (TST_CG_VER(cg, "memory") != TST_CG_V1)
25f08c3bdfSopenharmony_ci+    SAFE_CG_PRINT(cg, "cgroup.subtree_control", "+memory");
26f08c3bdfSopenharmony_ci
27f08c3bdfSopenharmony_ci@@
28f08c3bdfSopenharmony_ciexpression cg, fname, needle;
29f08c3bdfSopenharmony_ci@@
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci- cg_read_strstr(cg, fname, needle)
32f08c3bdfSopenharmony_ci+ !SAFE_CG_OCCURSIN(cg, fname, needle)
33f08c3bdfSopenharmony_ci
34f08c3bdfSopenharmony_ci@@
35f08c3bdfSopenharmony_ciidentifier l;
36f08c3bdfSopenharmony_ciexpression cg, fname;
37f08c3bdfSopenharmony_ci@@
38f08c3bdfSopenharmony_ci
39f08c3bdfSopenharmony_ci- l = cg_read_long(cg, fname);
40f08c3bdfSopenharmony_ci+ SAFE_CG_SCANF(cg, fname, "%ld", &l);
41