Skip to content

Commit

Permalink
crypto: api - Use formatting of module name
Browse files Browse the repository at this point in the history
Besdies, for the old code, gcc-4.3.3 produced this warning:
  "format not a string literal and no format arguments"

Signed-off-by: Alex Riesen <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
raalkml authored and herbertx committed Jun 2, 2009
1 parent a0cfae5 commit aa07a69
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)

alg = crypto_alg_lookup(name, type, mask);
if (!alg) {
char tmp[CRYPTO_MAX_ALG_NAME];

request_module(name);
request_module("%s", name);

if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
CRYPTO_ALG_NEED_FALLBACK) &&
snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp))
request_module(tmp);
CRYPTO_ALG_NEED_FALLBACK))
request_module("%s-all", name);

alg = crypto_alg_lookup(name, type, mask);
}
Expand Down

0 comments on commit aa07a69

Please sign in to comment.