-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc fixes for qrild #21
Open
calebccff
wants to merge
7
commits into
linux-msm:master
Choose a base branch
from
aospm:caleb/qrild-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ca18508
qmi: export packet header
calebccff d86dacc
lib/logging.h: extern C
calebccff 4246d2a
Add support for the qmi_tlv based QMI accessor
calebccff 9e9b6ba
qmi_tlv: fix dump and improve formatting
calebccff 8ade7c5
tlv_dump: fix off-by-1, add string decode, add dump helper
calebccff b501651
drop tlv_dump stuff, it should be implemented where needed
calebccff bec5bb2
libqrtr: add qmi_tlv_msg_name to map msg_id to name
calebccff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ struct qmi_tlv *qmi_tlv_init(uint16_t txn, uint32_t msg_id, uint32_t msg_type) | |
|
||
struct qmi_tlv *qmi_tlv_decode(void *buf, size_t len) | ||
{ | ||
struct qmi_header *pkt = buf; | ||
struct qmi_tlv *tlv; | ||
|
||
tlv = malloc(sizeof(struct qmi_tlv)); | ||
|
@@ -247,13 +246,13 @@ void qmi_tlv_dump(struct qmi_tlv *tlv) { | |
char line[LINE_LENGTH * 4 + 1]; | ||
|
||
pkt = tlv->buf; | ||
pkt_data = &pkt[1]; | ||
pkt_data = &pkt[0]; | ||
|
||
printf("<<< Message:\n"); | ||
printf("<<< type : %u\n", pkt->type); | ||
printf("<<< msg_len : %u\n", pkt->msg_len); | ||
printf("<<< msg_id : 0x%04x\n", pkt->msg_id); | ||
printf("<<< txn_id : %u\n", pkt->txn_id); | ||
printf("<<< msg_len : 0x%1$04x (%1$u)\n", pkt->msg_len); | ||
printf("<<< msg_id : 0x%1$04x (%1$u)\n", pkt->msg_id); | ||
printf("<<< txn_id : 0x%1$04x (%1$u)\n", pkt->txn_id); | ||
printf("<<< TLVs:\n"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please pass |
||
while (offset < tlv->size - sizeof(struct qmi_header)) { | ||
item = pkt_data + offset; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash this commit into the previous one.