X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fupdate.c;h=f237ea53bb2a7df7c10e5a0bca7ab33029c81d90;hb=f278a217491a0072629480010868eb1ffda407a6;hp=974f4655e7ef1d492b9c589cdfe02738a9fd1134;hpb=5619295995e3262bb5770e8b5e945ffdc5442145;p=oweals%2Fu-boot.git diff --git a/common/update.c b/common/update.c index 974f4655e7..f237ea53bb 100644 --- a/common/update.c +++ b/common/update.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2008 Semihalf * * Written by: Rafal Czubak * Bartlomiej Sieka - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -24,6 +23,7 @@ #include #include #include +#include /* env variable holding the location of the update file */ #define UPDATE_FILE_ENV "updatefile" @@ -242,7 +242,7 @@ int update_tftp(ulong addr, char *interface, char *devstring) } else if (interface && devstring) { update_tftp_dfu = true; } else { - error("Interface: %s and devstring: %s not supported!\n", + pr_err("Interface: %s and devstring: %s not supported!\n", interface, devstring); return -EINVAL; }