pkcs15init: more of debug messages in profile.c

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5032 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
vtarasov 2011-01-03 09:44:10 +00:00
parent 89d47696dd
commit 4fbe008623
1 changed files with 4 additions and 4 deletions

View File

@ -593,14 +593,14 @@ int
sc_profile_get_file_by_path(struct sc_profile *profile,
const sc_path_t *path, sc_file_t **ret)
{
struct sc_context *ctx = profile->card->ctx;
struct file_info *fi;
SC_FUNC_CALLED(ctx, SC_LOG_DEBUG_VERBOSE);
if ((fi = sc_profile_find_file_by_path(profile, path)) == NULL)
return SC_ERROR_FILE_NOT_FOUND;
SC_FUNC_RETURN(ctx, SC_LOG_DEBUG_NORMAL, SC_ERROR_FILE_NOT_FOUND);
sc_file_dup(ret, fi->file);
if (*ret == NULL)
return SC_ERROR_OUT_OF_MEMORY;
return 0;
SC_FUNC_RETURN(ctx, SC_LOG_DEBUG_NORMAL, *ret ? SC_SUCCESS : SC_ERROR_OUT_OF_MEMORY);
}
int