Skip to content

Print the return value of the engine in case of TizenRT. #2171

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

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

rtakacs
Copy link
Contributor

@rtakacs rtakacs commented Jan 23, 2018

Since TizenRT doesn't have any commands to get the return value of a process,
added a debug print line that shows the return value.

Similar solution was introduced in IoT.js (iotjs_main_tizenrt.c#L167)

@robertsipka
Copy link
Contributor

LGTM (informally)

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

int ret_code = jerry_cmd_main(argc, argv);

#ifdef CONFIG_DEBUG_VERBOSE
printf("JerryScript Result: %d\n", ret_code);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowercase "result"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rtakacs What about jerry_port_log, insted of printf?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@glistening Good idea, thanks.
@zherczeg Fixed.

Since TizenRT doesn't have any commands to get the return value of a process,
added a debug print line that shows the return value.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
@rtakacs rtakacs force-pushed the tizenrt-verbose-print branch from bba10d5 to e9ca9d4 Compare January 24, 2018 08:42
@yichoi
Copy link
Contributor

yichoi commented Jan 25, 2018

LGTM

@yichoi yichoi merged commit 7acd688 into jerryscript-project:master Jan 25, 2018
@rtakacs rtakacs deleted the tizenrt-verbose-print branch January 18, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants