Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47af1cef authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: Add variables to debugfs



Add hdlc_disable, time api variables to diag debugfs node.

Change-Id: I99284cef365e686e981f1dc1af25f20917c00967
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 66f4f85a
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -66,7 +66,10 @@ static ssize_t diag_dbgfs_read_status(struct file *file, char __user *ubuf,
		"Apps Supports HDLC Encoding: %d\n"
		"Apps Supports Sockets: %d\n"
		"Logging Mode: %d\n"
		"RSP Buffer is Busy: %d\n",
		"RSP Buffer is Busy: %d\n"
		"HDLC Disabled: %d\n"
		"Time Sync Enabled: %d\n"
		"Uses Time API: %d\n",
		chk_config_get_id(),
		chk_polling_response(),
		driver->polling_reg_flag,
@@ -75,7 +78,10 @@ static ssize_t diag_dbgfs_read_status(struct file *file, char __user *ubuf,
		driver->supports_apps_hdlc_encoding,
		driver->supports_sockets,
		driver->logging_mode,
		driver->rsp_buf_busy);
		driver->rsp_buf_busy,
		driver->hdlc_disabled,
		driver->time_sync_enabled,
		driver->uses_time_api);

	for (i = 0; i < NUM_PERIPHERALS; i++) {
		ret += scnprintf(buf+ret, buf_size-ret,