diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php
index 348451e76..4802afcd1 100644
--- a/src/Composer/Command/SelfUpdateCommand.php
+++ b/src/Composer/Command/SelfUpdateCommand.php
@@ -177,7 +177,17 @@ EOT
}
if (Composer::VERSION === $updateVersion) {
- $io->writeError(sprintf('You are already using composer version %s (%s channel).', $updateVersion, $versionsUtil->getChannel()));
+ $channelString = $versionsUtil->getChannel();
+ if (is_numeric($channelString)) {
+ $channelString .= '.x';
+ }
+ $io->writeError(
+ sprintf(
+ 'You are already using composer version %s (%s channel).',
+ $updateVersion,
+ $channelString
+ )
+ );
// remove all backups except for the most recent, if any
if ($input->getOption('clean-backups')) {