_output_handler()
authoryu.dongliang <18588496441@163.com>
Tue, 7 Nov 2023 07:16:49 +0000 (15:16 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 7 Nov 2023 07:16:49 +0000 (15:16 +0800)
ses_step_output.c

index 614a69e49caeabef504630351628fc8bbf158efd..5bd543d588f2f47e9b75cb5ef0bda715ce0e5751 100644 (file)
@@ -176,7 +176,10 @@ static int _output_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t
                        else
                                return -EINVAL;
 
-                       scf_logw("IN el: %ld, V: %lg\n", el->id, el->v);
+                       if (SCF_EDA_PIN_OUT & el->flags)
+                               scf_logw("out el: %ld, V: %lg\n", el->id, el->v);
+                       else if (SCF_EDA_PIN_CF & el->flags)
+                               scf_logw("cf  el: %ld, V: %lg\n", el->id, el->v);
                }
        }