dreport: fix missing log messages related to skipping copy

Existing add_copy_file function not logging "skipping copy"
warning message incase dump size is reached to max size.

This message logging problem is fixed by call log function
prior to return call.

Tested: verified using dreport tool

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I98ebe43e455e9b4cb93a102b7eb27e2a0f677309
diff --git a/tools/dreport.d/include.d/functions b/tools/dreport.d/include.d/functions
index 8c4345d..45b9818 100755
--- a/tools/dreport.d/include.d/functions
+++ b/tools/dreport.d/include.d/functions
@@ -42,8 +42,8 @@
         log_info "Copied $desc $file_name"
         return $SUCCESS
     else
-        return $RESOURCE_UNAVAILABLE
         log_warning "Skipping copy $desc $file_name"
+        return $RESOURCE_UNAVAILABLE
     fi
 }
 # @brief Copy the symbolic link file to the dreport packaging,