Skip to content

Commit

Permalink
ncm-spma: Fix lint warnings in debug calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Dec 12, 2024
1 parent 7a76642 commit 817a5ad
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ncm-spma/src/main/pan/components/spma/functions.pan
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function purge_rep_list = {
arg = (optional) arch. If arch is not specified (no argument provided), then ALL existing archs for the specified version are removed from the profile.
}
function pkg_del = {
debug(format('%s: pkg_del: removing package %s', OBJECT, ARGV[0]));
debug('%s: pkg_del: removing package %s', OBJECT, ARGV[0]);

# SELF handles the current list of packages
name = ARGV[0];
Expand Down Expand Up @@ -216,12 +216,12 @@ function pkg_del = {
SELF[e_name][v] = null;
};
} else {
debug(format('%s: deleting package %s (all versions/archs)', OBJECT, ARGV[0]));
debug('%s: deleting package %s (all versions/archs)', OBJECT, ARGV[0]);
SELF[e_name] = null;
};
};
} else {
debug(format('%s: package %s not part of the configuration, nothing done', OBJECT, ARGV[0]));
debug('%s: package %s not part of the configuration, nothing done', OBJECT, ARGV[0]);
};

SELF;
Expand Down Expand Up @@ -260,7 +260,7 @@ function pkg_repl = {
arch = package_default[u_name][1];
};
} else {
error(format('No default version defined for package %s', ARGV[0]));
error('No default version defined for package %s', ARGV[0]);
};
} else {
version = ARGV[1];
Expand Down Expand Up @@ -295,7 +295,7 @@ function pkg_repl = {
};
};
if ( !is_defined(SELF[e_name]) || !arch_found ) {
debug(format('%s: package %s not part of the configuration, not replacing it', OBJECT, ARGV[0]));
debug('%s: package %s not part of the configuration, not replacing it', OBJECT, ARGV[0]);
return(SELF);
};
};
Expand Down Expand Up @@ -344,7 +344,7 @@ function pkg_repl = {
} else {
arch_params = undef;
};
debug(format('%s: arch_params=%s, arch selected=%s', OBJECT, to_string(arch_params), to_string(arch)));
debug('%s: arch_params=%s, arch selected=%s', OBJECT, arch_params, arch);
# If arch is unspecified, remove any explicit arch else add specified arch
if ( is_defined(arch) ) {
if (!is_defined(arch_params) ) {
Expand Down Expand Up @@ -431,7 +431,7 @@ add the most recent of emacs to the profile
"/software/packages"=pkg_add("emacs");
}
function pkg_add = {
debug(format('%s: pkg_add: adding package %s', OBJECT, ARGV[0]));
debug('%s: pkg_add: adding package %s', OBJECT, ARGV[0]);

version = undef;
arch = undef;
Expand All @@ -457,7 +457,7 @@ function pkg_add = {
arg = (optional) arch
}
function pkg_ronly = {
debug(format('%s: pkg_ronly: replacing package %s if currently present', OBJECT, ARGV[0]));
debug('%s: pkg_ronly: replacing package %s if currently present', OBJECT, ARGV[0]);

version = undef;
arch = undef;
Expand Down

0 comments on commit 817a5ad

Please sign in to comment.