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

FRAM: cFram::Cursor::saveField() doesn't return error status or log problems #309

Open
terrillmoore opened this issue Jul 5, 2021 · 0 comments
Assignees

Comments

@terrillmoore
Copy link
Member

This is for the future FRAM scrub. saveField() needs to change to bool and do more logging, e.g.,

	bool rc;

	rc = true;
        if (! cursor.create())
                {
                gLog.printf(gLog.kError,
                        "%s: can't save uKey(0x%x) %u bytes\n",
                        __func__, uKey, nValue
                        );
		rc = false;
                }

        if (! cursor.put(pValue, nValue))
		{
		gLog.printf(gLog.kError, "%s: can't put uKey(0xx) %u bytes\n",
			__func__, uKey, nValue
			);
		rc = false;
		}

	return rc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant