【问题标题】:Trace options enabling in yaffs在 yaffs 中启用的跟踪选项
【发布时间】:2015-02-07 19:28:02
【问题描述】:

我正在使用 linux 2.6 和 YAFFS。

在挂载 FS 后的 rcS 脚本中,我将跟踪选项传递给 yaffs,

echo =none+error > /proc/yaffs

我在 yaffs_proc_write_trace_options 中写了 printk 来查看通过的跟踪选项。

static int yaffs_proc_write_trace_options(struct file *file, const char *buf, 无符号长计数,无效*数据) 在上述函数中,“buf”是指向跟踪选项的指针。

我使用了 printk(KERN_INFO,"%s", buf);

在日志文件中,我看到了 =无+错误

7v9dl2

我对第二行打印的跟踪选项感到困惑,因为我得到了所有跟踪日志。

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: linux


    【解决方案1】:

    我使用的是busybox-1.18.5版本。我已将其升级到busybox-1.20。 我恢复了busybox版本,它修复了这个回声问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-11
      • 2021-06-10
      • 2022-12-17
      • 2017-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多