Skip to content
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

how to print "double" or "float" value in TA side? #24

Open
Tigerly opened this issue Sep 19, 2017 · 3 comments
Open

how to print "double" or "float" value in TA side? #24

Tigerly opened this issue Sep 19, 2017 · 3 comments

Comments

@Tigerly
Copy link

Tigerly commented Sep 19, 2017

I have a naive question, when I try to print a double value using "printf", like
printf("double a == %f", a);
In the TA side, it returns "f" instead of the correct value.

My questions are:
1, How should I do to print double or float value in TA side?
2. Why does it returns "f" for my "printf" code?

Thanks in advance!

@jenswi-linaro
Copy link
Owner

The printf() implementation doesn't support printing floating point types. Patches are welcome! :-)

@Tigerly
Copy link
Author

Tigerly commented Sep 19, 2017

Thanks for replying! Got it. So, how can I print a double or float value? Does op-tee provide some
functions?

@jenswi-linaro
Copy link
Owner

No, there's no functions already available in OP-TEE for that (unless there's something under lib/libutils/isoc/arch/arm/softfloat, but that's not available for Aarch64).

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

No branches or pull requests

2 participants